|
-
Oct 2nd, 2003, 02:47 PM
#1
Thread Starter
New Member
-
Oct 3rd, 2003, 10:32 AM
#2
Addicted Member
On application startup, load all of your forms, but don't display them. When a user wants to use a particular form then display it, and then when they're done with it just hide it rather than closing it.
-
Oct 3rd, 2003, 08:06 PM
#3
Thread Starter
New Member
Been trying to do just that, only I keep getting new copies of the forms instead of the ones that are already there.
I am a total newbie to this Visual Basic stuff, could you help with a code sample perhaps ?
Thank you
-
Oct 9th, 2003, 11:33 AM
#4
Addicted Member
You just need to declare object variables that represent your form. IE:
VB Code:
' Assuming your child form is named frmChild....
Dim ChildForm As New frmChild
Then all you do is refer to the ChildForm variable when you want to display the form, instead of the form itself.
VB Code:
ChildForm.Show
' Instead of frmChild.Show
HTH
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
|