I have two form the parent form with the menu list and the child form.
I want to show the two form simultaneously or the main menu first and then the child form.Is it possible? Any idea?
leahrose87
0
Light Poster
Recommended Answers
Jump to Poston the load event of form1 just write form2.show()
is that it ?
Jump to PostPrivate Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Form2.Show() End Sub
Shows both forms overlapping. So ÜnLoCo gave you the right answer.
Jump to Posthere is solution first amke parent form proerit IsMdiContainer=true then when you load the parent form (i.e. MDi parent form) on the load event put this code
dim f2 as new form2 //which is my form2 protected sub form1_load f2=new form2 f2.MdiParent=me //this is form1 f.show() end …
Jump to Postopen the Form2.Designer.vb file and paste the code of InitializeComponent
it should look like:
Private Sub InitializeComponent() components = New System.ComponentModel.Container Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.Text = "Form2" End Sub
Also make sure you havent set it to Visible=false and make sure Form2 is …
All 13 Replies
ÜnLoCo
0
Light Poster
leahrose87
0
Light Poster
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
leahrose87
0
Light Poster
pritesh2010
30
Posting Whiz in Training
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
leahrose87
0
Light Poster
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
pritesh2010
30
Posting Whiz in Training
leahrose87
0
Light Poster
pritesh2010
30
Posting Whiz in Training
leahrose87
0
Light Poster
pritesh2010
30
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.