Results 1 to 5 of 5

Thread: Load Form or Form.show()

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    California
    Posts
    7

    Question 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
    VB Code:
    1. Form.show()
    or
    VB Code:
    1. Load Form
    from within another form but I seem to be having problems with this in .NET. Can someone please show me how to do this.
    I code therefore I am!

  2. #2
    Junior Member
    Join Date
    Dec 2003
    Location
    California
    Posts
    19
    VB Code:
    1. Public Sub newForm(..........
    2.    Dim myForm as New "form name you want to show"
    3.         myForm.Show()
    4.  
    5. 'or
    6.  
    7.        myForm.ShowDialog() '
    8.  
    9. End Sub

    Hope this helps.
    Regards-

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Location
    California
    Posts
    19
    Sorry, forgot to add....

    If you are talking about an MDI Parent/Child relationship -
    VB Code:
    1. Public Sub newMDI (.........
    2.      Dim myForm as New "your child form name"
    3.           myForm.MdiParent = Me
    4.           myForm.Show()
    5. End Sub

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    California
    Posts
    7
    Thanks betrl8thanever! That's exactly what I was looking for!
    I code therefore I am!

  5. #5
    Junior Member
    Join Date
    Dec 2003
    Location
    California
    Posts
    19
    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
  •  



Click Here to Expand Forum to Full Width