
04-06-2006, 01:51 PM
|
|
Freshman
|
|
Join Date: Jan 2006
Posts: 26
|
|
Prolems with child forms
|
Hi every one,
I am trying to solve the following two problems without success. I have a parent form (frmParent) and a child forms (frmChild1). frmParent has a menu items (mnuChild1) which opens frmchild.
1. After frmChild1 is opened and minimized, when a user clicks mnuChild1 on the frmParent, I want frmChild1 to be restored. My question is: how do I do that? (In VB6, frmChild1.show will do just that.
2. After frmChild1 is opened and closed (by click x on the upper right corner), how do I reopen this form?
Note:
I declared Dim Child1 as frmChild1 outside the mnuChild_Click routine. If I move Dim Child1 as frmChild1 inside the mnuChild_Click routine, then I will open frmChild1 each time mnuChild1 is clicked (I want only one copy to open at a time).
Thanks a lot for any help.
|
|