-
Multiple Form Issues
I am having a bit of trouble with multiple forms. I have an "about" form ( describes the program ) and i dont know how to show my form. I tried this
Code:
frmAbout.ShowDialog
but that didnt work. Is there something else i need to do to bring up another form? Also, once i bring up that form, how do i make it go away? Im sorry, im really new to programming...
-
frmAbout.Show
And it will be gone when they hit the X, or if you have an OK button, use this for it:
Private Sub cmdOK_Click()
Unload Me
End Sub
-
help?
I tried frmAbout.Show. That didnt work. You know how when u put a period after something, a drop down menu appears? show isnt even in that menu. Is there something else wrong? Do i have to dim the form?
-
Are you sure your form is called frmAbout?
It works, you dont need to dim it.
-
Yep
Its name is frmAbout so i dont know whats going on. In the solution manager its also called frmAbout, so is there any reason for it not to work? This is vb.net by the way.
-
Thats probably why, this is VB6 and below, ask in the .Net forum.
-
!!!
Oh, shnap. Im sorry. Im gonna be kicked out of here. O man, had i known. I should read more carefully... Sorry. I guess its the noob in me...
-
Code:
Dim frmNewAbout as new frmAbout
frmNewAbout.ShowDialog
It will close itself if you use the cross, or add a command button that does it using the "Close" function.
-
Hi Andrew,
Don't apologise. You ARE in the correct Forum!!
You have obviously moved up from VB6 so you are always going to have to remember that no form exists in your runtime application until you specifically create an instance of it - just like Grimfort posted.
Best of luck,
-
I think an admin moved it. Them majick people we never see ;).