|
-
Jan 24th, 2004, 11:08 PM
#1
Thread Starter
Member
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...
-
Jan 24th, 2004, 11:24 PM
#2
Frenzied Member
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
-
Jan 24th, 2004, 11:55 PM
#3
Thread Starter
Member
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?
-
Jan 25th, 2004, 12:06 AM
#4
Frenzied Member
Are you sure your form is called frmAbout?
It works, you dont need to dim it.
-
Jan 25th, 2004, 12:19 AM
#5
Thread Starter
Member
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.
-
Jan 25th, 2004, 12:27 AM
#6
Frenzied Member
Thats probably why, this is VB6 and below, ask in the .Net forum.
-
Jan 25th, 2004, 12:46 AM
#7
Thread Starter
Member
!!!
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...
-
Jan 26th, 2004, 08:42 AM
#8
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.
-
Jan 26th, 2004, 10:14 AM
#9
PowerPoster
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,
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Jan 26th, 2004, 10:47 AM
#10
I think an admin moved it. Them majick people we never see .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|