开发者

Treecontrol: SelectionChanged Event called thrice

开发者 https://www.devze.com 2023-01-27 23:02 出处:网络
I have a tree control used in my form and have around 10 items in the tree. Each Parent having one sub child/node.

I have a tree control used in my form and have around 10 items in the tree. Each Parent having one sub child/node.

I am handling the SelectionChanged event of the tree. Whenever an treeitem is selected this event is fired and the function开发者_如何学JAVA called. But this function is called at least thrice!!

Is there something that i have done wrong where everytime i select a tree item it is called thrice !!


r u doing something in the handler which causes tree selection event to fire ?

Can you please post some of your code?

EDIT

try putting e.Handeled = true in your handler

0

精彩评论

暂无评论...
验证码 换一张
取 消