Forms alike

Shay

Well-Known Member
Licensed User
Longtime User
Hi

How do I use "forms"? meaning:
If I comapre it to VB
I have form1 with lots of buttons, when I finish the stuff their
I wish to unload it and load new form with different buttons and different code

is it possible? to load different "forms" and different modules files, all under the same "project"

my goal is that since i have many objects and code, I wish that user make his choice in screen 1, then opens screen 2 with differnt objects and code and so on...

Thanks
 

klaus

Expert
Licensed User
Longtime User
Upvote 0

splatt

Active Member
Licensed User
Longtime User
Create & save your forms in the designer, giving each one a unique name.
Then use Activity.LoadLayout("your_layout_name").

You could also load the layouts into panels and make them visible when you need to.

Edit: Sorry, just noticed Klaus has told you the same thing!
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Cont.

Thanks
Don't I need to unload as well (if i moved to layout2, don't I need to unload layout1)

what about the code? will all layouts code will be at the same "main"
 
Upvote 0
Top