Would it not make sense to have several containers on your Form1 and not have a
Form2 at all. A container is an object such as a frame or picture box. Then fill
each container with whatever you would have put in each form, except cmdNEXT.
Set the 1st container's visible property to true, and the second as false. Then
add code in the cmdNEXT button to set the first container visible=false and the
second true.
If you really need two forms, you can have the commands,
Form1.Hide
Form2.Show
I think that might work.
G.Doucet
James Hades a crit :
Quote:
> i am trying to quickly learn vb6 to put together a simulation program for a
> mixture properties. the purpose is not ,however, important. i need to know
> what the code is that would go inside the next button click event. with a
> button cmdNext on form1 how do i close form1 and open form2?
> thank you
> james hades