传递数据,表格,用户控制? [英] Passing data, form, user control?
本文介绍了传递数据,表格,用户控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我需要一些帮助.
我有一个包含emtpy Tab控件的窗体,还有一个工具栏按钮,它创建一个空选项卡,然后将用户控件加载到该新选项卡中.在用户控件上,我有关闭"按钮,我需要关闭该特定(选定)选项卡.有人可以帮我弄这个吗?提前感谢.
Hello ppl, I need some help.
I have one form that contains emtpy Tab control, also a toolbar button which creates an empty tab and then loads user control into that new tab. On the Usercontrol i have CLOSE button, and I need to close that specific (selected) tab. Can someone help me with this? Thanx in advance.
推荐答案
我相信您需要的是使用委托来传递事件.
事件和代理简化 [ Meysam Mahfouzi [
I believe what you will need is to use a delegate to pass over the event.
Events and Delegates Simplified[^]
Code project article already exists to help with that thanks to Meysam Mahfouzi[^]
这篇关于传递数据,表格,用户控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文