B4J Question Two 'forms' where does the code go?

raphipps2002

Active Member
Licensed User
Longtime User
[apologies for wrong terminology used to vb.net]

I have a main form where, when pressing a button on it, opens another form. On the second form there is a button which should I thought jump to the sub where the event is and do what it is supposed to do. But it doesn't. Should all the code go in the Main code module or is it ok to have code 'behind' each form, so that code is identified with that window? on the second form I 'Generated Members' and created events which appear in my another code module. Will the button click even default back the the main code or do i need to associate the form2 with that second code module in another way?

Hope that makes sense?

As you know with vb.net...clicking that button automatically associates the code with a form. All the 'views' or 'objects' are directly associated with it. With B4J it seems you can have everything everywhere.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…