My Mistery on Forms

matraca

Member
Joined
Sep 20, 2006
Messages
14
Programming Experience
Beginner
My question is that if i have two forms (Form1, Form2) in desgined mode and i add a button on form1 to open form2, on click event i have

VB.NET:
Expand Collapse Copy
dim frm as new form2
frm.showdialog(me)

That opens the form2, but if you look at the picture i attach below, even i can't close form1 until i'm done with form2, they both show up in the taskbar.

How can make form2 be part of the form1???

PS: i also have the inherits system.windows.forms.form ,still nothing :(


Can anyone shed some light here.
 

Attachments

  • frm.png
    frm.png
    129.4 KB · Views: 41
Set property ShowInTaskBar to False for that form.
 
Back
Top