Results 1 to 6 of 6

Thread: Unload Form1

Threaded View

  1. #4
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158
    In the form1 class , declare a private variable:

    Private aForm as Form2

    when you want to show form2 use:

    aForm = New Form2
    aForm .Show

    when you want to close the form use:

    aForm .Close

    Basically, aForm was out of scope, and obvously, in production code, you should use a more descriptive names than 'aForm ' and 'Form2';
    Last edited by PeteD; Sep 13th, 2003 at 06:58 PM.

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