-
Trouble with forms
I'm a total newbie at VB7, been programming a little VB6, but not much.
Anyhow, my question is:
I made a simple form, with a menu. When i click on a menu, it is supposed to open(show) a new form.
In VB6 it was easy, a simple frmAbout.Show and you were there. How does it work in VB7?
Thx in advance
Kindred
-
I had the same questionno a few weekies ago
say you have the second form called frmBoo, you load it this way:
Dim aForm as new frmBoo
aForm.Show ()
I think this worked, I dont have VB right now to test it
HTH
EEE:eek: and I forgot to congradulate your first post :p
-
Thank you so much ;)
i tried
Dim frmBoo as new Form()
frmBoo.ShowDialog ()
but i didn't quite understand why i was getting a blank form :D
Dim aForm as new frmBoo
aForm.ShowDialog ()
Works like a charm ;)
-
hehe I dont know what's showDialog for
so the show method worked?
oh and enjoy your stay on the forums ;)
-
ShowDialog makes the form Modal.
Modal is when you can't hide the form, unless you close it :-)