|
-
May 12th, 2004, 12:46 PM
#1
Thread Starter
Member
a newbie question
i just started using vb.net, and my question is - how do u show another form? (im using windows application in vb 6 platform)
thanks...
-
May 12th, 2004, 02:35 PM
#2
Hyperactive Member
I'm not sure to understand well, but if your problem is 'to show a form', first of all you have to instance it :
Dim FrmGoofy as new FormIdesignedYesterday
then
FrmGoofy.Show
If you already use Vb6 it should be not too difficult...anyway I'm here if you need. Good job
Live long and prosper (Mr. Spock)
-
May 12th, 2004, 02:42 PM
#3
Junior Member
' Dim Form2 As New Form2()
' Form1.Show()
' Me.Hide()
'Form2.Hide()
something like that.
i wanted a intro form with a button on it. the button is a enter button and when you click it, this takes you too the main form, i think the above code would go on the enter button but im not sure how you instance it in the other from?>
-
May 13th, 2004, 02:47 PM
#4
Junior Member
does anyone know it this is correct?
i still can't get one main form to close and another one to show?
-
May 14th, 2004, 03:59 AM
#5
Hyperactive Member
I'm not sure to understand exactly what you need, but if you are on the start form and you need to hide the start form (Form1) and to show a second Form (Form2) on the click event of a button, try this:
VB Code:
Dim FormAName As New Form2
Me.Hide()
FormAName.ShowDialog()
Me.Show()
FormAname.Close()
FormAName.Dispose()
Form1 will disappear and Form2 will appear, when you click the button. Then when you'll close form2, using the x button in the right high corner, Form1 will appear again.
Is it useful for you?
Good job!
Live long and prosper (Mr. Spock)
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
|