如何在一定时间后触发TreeView控件的事件?
我在我的项目中使用树视图控件。我只需要在一定时间后触发树视图中的事件,因为当用户尝试随机选择某个项目时,它会为选择时传递的每个项目触发一个事件,直到他确认该项目。怎么做呢?
提前感谢
I am using a treeview control in my project. I need to trigger an event in treeview only after a certain time, because when the user tries to select a certain item randomly, it triggers an event for every items passed while selecting till he confirms the item. How to do that?
Thanx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用计时器并在 TreeView 事件中启用它,并在完成后在 Tick 事件中禁用它。
You can use Timer and enable it on TreeView event and disable within Tick event when completed.