Results 1 to 2 of 2

Thread: Visual Basic Net - Waiting for form to finish?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    1

    Visual Basic Net - Waiting for form to finish?

    Hi,

    I want to call multiple forms one after the other.
    But i want them to show up when the last one is finsihed.
    I am calling them from a seperate module, which has:

    dim Frm1 As New Form_Task1
    dim Frm2 As New Form_Task2
    dim Frm3 As New Form_Task3


    Frm1.ShowDialog() ' would like to show this form and wait for the user to select a button
    Frm2.ShowDialog()' Show this when the previous form has finished...

    Do i need to setup a return value and set variable = Frm1.ShowDialog ?

    Can someone show me how this is done?

    cheers,

    toil

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    62
    Just type
    Frm1.ShowDialog()
    Frm2.ShowDialog()

    Do this from where you want to call them.
    ex: if you push a button or something like that.

    The command ShowDialog waits until the form it calls, closes.
    No return value is needed
    //Martin Andersson

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