如何使用此USer控件 [英] How to Work with this USer Control
问题描述
亲爱的所有人,
我在应用程序C#WM 5.0 CF 3.5中工作,我有大约30个表单,每个表单都是全屏&我在每个表单的顶部添加我的用户控件,在这个用户控件中,我显示了一些关于电池和电池的信息。信号与GPS也是时间,我在这个用户控制计时器中使用时间和时间。来自SystemState事件的事件。
我的问题是,当我第一次打开表单时它打开很好但是当我关闭这个表单(this.Close())时,用户控件仍然触发此表单的事件,当我打开表单时下一次它没有打开
如何关闭此用户contrtol与表单关闭
谢谢
程序:\ Mohammed Galal
Dear All,
I work in application C# WM 5.0 CF 3.5, i have about 30 form and each form is fullscreen & i add my User Control in top of each form, in this user control i show some inormation about battery & signal & GPS also time , i use in this user control Timer for time & Events from SystemState events.
My problem is that when i open form for first time it open fine but when i close this form (this.Close()), user control still fire event for this form, and when i open form for next time it not open
How Can i close this user contrtol with form close
Thank You
Prog:\Mohammed Galal
推荐答案
您好
资源仍然在使用
它会有所帮助。
问候
这篇关于如何使用此USer控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!