|
-
Dec 6th, 2003, 06:42 PM
#1
Thread Starter
New Member
Load Form or Form.show()
I'm new to VB.NET but not VB 6.0. I know that in VB 6.0 you could load and show another form with or from within another form but I seem to be having problems with this in .NET. Can someone please show me how to do this.
-
Dec 6th, 2003, 07:30 PM
#2
Junior Member
VB Code:
Public Sub newForm(..........
Dim myForm as New "form name you want to show"
myForm.Show()
'or
myForm.ShowDialog() '
End Sub
Hope this helps.
Regards-
-
Dec 6th, 2003, 07:40 PM
#3
Junior Member
Sorry, forgot to add....
If you are talking about an MDI Parent/Child relationship -
VB Code:
Public Sub newMDI (.........
Dim myForm as New "your child form name"
myForm.MdiParent = Me
myForm.Show()
End Sub
-
Dec 6th, 2003, 10:00 PM
#4
Thread Starter
New Member
Thanks betrl8thanever! That's exactly what I was looking for!
-
Dec 7th, 2003, 12:14 AM
#5
Junior Member
You're welcome! Have fun.
Regards-
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
|