By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,745 Members | 1,577 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,745 IT Pros & Developers. It's quick & easy.

like MDI parent form...

P: 1
how can I use main form like MDI parent form in window application?
Sep 10 '10 #1
Share this Question
Share on Google+
1 Reply


P: 33
Create a panel, and here's the code I use. Where childForm is the name of the instance of the form you want to display in the panel

Expand|Select|Wrap|Line Numbers
  1.       Panel1.Controls.Clear()
  2.         childForm.FormBorderStyle = FormBorderStyle.None
  3.         childForm.MaximizeBox = False
  4.         childForm.MinimizeBox = False
  5.         childForm.ControlBox = False
  6.         Me.IsMdiContainer = True
  7.         childForm.MdiParent = Me
  8.         childForm.Dock = DockStyle.Fill
  9.         childForm.Parent = Panel1
  10.          childForm.Show()
  11.         Panel1.Update()
  12.  
Sep 14 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.