开发者

MDI Parent Child

开发者 https://www.devze.com 2023-04-12 15:35 出处:网络
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 inher

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号