MDI 父子
我创建了一个 MDI 表单 &想要继承一个已经制作好的子窗体。那么我必须做什么才能访问该子窗体中 MDI 上的所有控件。 (我不想创建一个新的继承形式,我已经有一个)
I have created one MDI form & Want to inherit a already made Child form. So what I have to do to access all controls on my MDI in that child form. (I dont want to create a new inherited form, I have already one)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题相当不清楚,但您似乎是在询问如何将表单显示为 MDI 子项。我假设您已将主表单的
IsMdiContainer
设置为true
。为了显示 MDI 子窗体,您需要设置子窗体的
MdiParent
属性。像这样: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
totrue
for your main form.In order to show an MDI child you need to set the
MdiParent
property for the child form. Like this: