emi_sastra
asked on
Showing several windows form.
Hi,
I have a mdiform and several windows form.
I call form2 from form1.
Form1 is larger than form2.
When I click form1 then the form2 is disappear (it is behind the form1).
How I could show the form2 which is user friendly when I need to show it again?.
Thank you.
I have a mdiform and several windows form.
I call form2 from form1.
Form1 is larger than form2.
When I click form1 then the form2 is disappear (it is behind the form1).
How I could show the form2 which is user friendly when I need to show it again?.
Thank you.
ASKER
Hi,
I don't get it.
Would you please explain?
Thank you.
I don't get it.
Would you please explain?
Thank you.
you asked how you can show the form, when you need it, use this code:
form2.show
form2.activate
form2.show
form2.activate
ASKER
Hi,
I mean why form2.show together with form2.activate?
Where to put it, on form1, at what event?
Thank you.
I mean why form2.show together with form2.activate?
Where to put it, on form1, at what event?
Thank you.
when you need it. What makes your application to need it? a press of a button?
Hi
If you add the MDIform, if you open multiple child forms then in the window option automatically the list of forms will be appeared. So same way do the same thing. So when ever you require to change another form just select that form like in word document.
If you add the MDIform, if you open multiple child forms then in the window option automatically the list of forms will be appeared. So same way do the same thing. So when ever you require to change another form just select that form like in word document.
ASKER
Hi,
Why we need to form2.show?
When I press button from form1, the form2 is shown.
So, the form2 is activated, then I click form1 again, then form2 is disappeared.
Why we need to form2.show, hasn't it shown already?
I put :
Private Sub Form2_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
MsgBox("Form2 Show")
End Sub
The message is kept showing, can not be stopped till I stop debugging?
Sometimes I need to refresh combobox when activated form is activated, and I put it in Form_Activated, could it be a problem?
Thank you.
Why we need to form2.show?
When I press button from form1, the form2 is shown.
So, the form2 is activated, then I click form1 again, then form2 is disappeared.
Why we need to form2.show, hasn't it shown already?
I put :
Private Sub Form2_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
MsgBox("Form2 Show")
End Sub
The message is kept showing, can not be stopped till I stop debugging?
Sometimes I need to refresh combobox when activated form is activated, and I put it in Form_Activated, could it be a problem?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Yes, without messagebox, it just occurs once.
Thank you very much for your help.
Yes, without messagebox, it just occurs once.
Thank you very much for your help.
form2.activate