CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: modal forms

  1. #1
    Guest

    modal forms

    I want to display 4 modal forms at a time.
    form1 call form2
    form2 calls form3
    form3 call form4
    form4 should be the active form.
    After form4 closes ,control should go to form3,then form2 and form1.
    I am invoking the forms in Activate event.
    But it is in infinite loop.
    As the form3 activate is getting called after form4 is closed .

    I need a solution wiothout using global variables.
    Pl. help


  2. #2
    Join Date
    Dec 1999
    Posts
    128

    Re: modal forms

    In Form1_Load type:

    [vbcode]
    Form2.Show vbModal
    [vbcode]

    In Form2_Load type:

    [vbcode]
    Form3.Show vbModal
    [vbcode]

    etc.

    This should work the way you want it.

    -------------------------
    Nick A.

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

Featured