|
-
Sep 13th, 2003, 11:39 AM
#4
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|