Here's what I think I'd do in your situation. Create *one* form, not 50.
On the form, put the variable list of controls that you want on each 'form'
in a separate panel of the same size. You're going to display each panel in
turn, as you cycle through the list. In the form constructor, create a list
of the panels and an integer index, which you set to 0, pointing to the
first item in the list, which should be the panel displayed first.
Outside the panel area on the form, you can have whatever other, unchanging
controls you want (Next, Previous, Item #1, Item #3, whatever). In the
handler for each of those controls, you'll move the active panel,
panelList[ panelListIndex ] off-screen, maybe to a point like 6000,6000 or
something, then move the new active panel into the active location on the
form, updating the panelListIndex. Attached is a very simple and not
complete example that allows you to cycle through three panels, each with
various controls on it via buttons on the main form.
Paul T.
ramonours said:
OK, I want to have Form1 (mainform) that has 3 buttons one by one the
buttons will take me to Form2, Form3, and Form4. On Form2,Form3 and Form4
I
want a button that takes me back to Form1 (mainform). Then When I tap on
the 'ok' on Form1 the application will end.
That used to be easy to do in VB6 and eVB.
Thanks in advance,
bb.