如何在UserControl单击事件中使用MdiParent属性? [英] How to use MdiParent property in UserControl Click Events?

查看:120
本文介绍了如何在UserControl单击事件中使用MdiParent属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在
中使用MdiParent属性 UserControl(按钮,标签,..)单击事件.

有没有可能?让我知道.

问候,
Pawan.

Hi,

How to use the MdiParent Property in
UserControl (Button,Label,..)Click Events.

Will it be possible or not? Let me know.

Regards,
Pawan.

推荐答案

使用MdiParent属性"是什么意思?

在其后放一个点,然后做您想做的事.当然,为了执行特定于应用程序的任何操作,您可能必须将属性强制转换为所需的类.

正确的方法是对MdiParent表单订阅用户控件的各种事件.您可以将控件公开,也可以设置事件中继系统(我自己将控件公开,但这是因为我是懒惰的SOB).
What do you mean by "use the MdiParent property"?

Put a dot after it and do what you want. Of course, you''re probably going to have to cast the property to the desired class in order to do anything app-specific.

The correct way to do it is for the MdiParent form subscribe to the user control''s various events. You can either make the controls public or set up an event relay system (I''d make the controls public myself, but that''s because I''m a lazy SOB).


这篇关于如何在UserControl单击事件中使用MdiParent属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆