This kind of modularity is exactly suited to the new modules feature.
You will need to wait to the release of version 6.50 or if you like you I can send you a link to the beta version.
It is very simple to use it:
- Add the attached module to your project.
- Add references to Formlib and Hardware / HardwareDesktop (this step will not be required in the stable version).
In your code you should add something like:
Sub Globals
End Sub
Sub App_Start
Form1.Show
EditMenu.Initialize("Main.Form1")
EditMenu.AddControl("Main.TextBox1")
EditMenu.AddControl("Main.TextBox2")
EditMenu.AddControl("Main.TextBox3")
End Sub