Results 1 to 2 of 2

Thread: Loading another from Modally

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Location
    Mumbai
    Posts
    31

    Red face Loading another from Modally

    In VB.net ,How do open form2.vb from form1.vb in modal

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    VB Code:
    1. Dim frm as New Form2
    2. frm.ShowDialog

    In case you want to do something based on the dialogresult of Form2 you can aslo try this:
    VB Code:
    1. Dim frm as New Form2
    2. If frm.ShowDialog=DialogResult.OK ' Or any other result
    3.    'some thing here
    4. Else
    5.    'some other code
    6. End if
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

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