I have created one MDI form & Want to inherit a already made Child form. So what I have to do 开发者_如何学Goto access all controls on my MDI in that child form. (I dont want to create a new inherited form, I have already one)
Your question is rather unclear but it appears that you are asking how to show a form as an MDI child. I assume that you have already set IsMdiContainer
to true
for your main form.
In order to show an MDI child you need to set the MdiParent
property for the child form. Like this:
ChildForm myChild = new ChildForm();
myChild.MdiParent = this;//this is the main form, the MDI parent
myChild.Show();
精彩评论