简体   繁体   English

一定时间后如何触发TreeView控件的事件?

[英]How to trigger an event of TreeView control after a certain time?

I am using a treeview control in my project. 我在我的项目中使用Treeview控件。 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 提前感谢

您可以使用Timer并在TreeView事件上启用它,并在完成时在Tick事件中禁用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM