
OK you beginners, here's your chance to help this beginner
Quote:
> Rank beginner question:
> I have Form1 with a menu. I want form2 to appear when a
> menu option is chosen. In Form1 click( ) of the menu item,
> what code makes form1 go away to be replaced with form2 ?
> Thanks in advance
> Don Huber
The easiest way to do this is:
sub menu_Click()
Form1.hide
Form2.show
end sub
If you want something better, you can try this:
sub menu_Click()
Form1.hide
form2.left=form1.left
form2.top=form1.top
form2.width=form1.width
form2.height=form1.height
Form2.show 1
end sub
sub form2_terminate()
form2.hide
form1.show
form2.unload
end sub
And when you click the option on the menu, you will see the form2 in the
same position and size than form1 :-).
After use the form2, the form1 is showed.
The One (1) after the show command is for modal mode (you can review it in
the help).
ALvaro