开发者

NodeMouseClick event doesn't work correctly?

开发者 https://www.devze.com 2022-12-27 22:04 出处:网络
i use a treeview to display files and folders like Windows Explorer. it has a NodeMouseClick event but sometimes when i click +, this event doesn\'t fire.

i use a treeview to display files and folders like Windows Explorer. it has a NodeMouseClick event but sometimes when i click +, this event doesn't fire.

private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
    {            
        MessageBox.Show("node mouse click");            
 开发者_运维技巧   }

can anyone explain for me why ? and how to know whenever i click + ?

thanks in advance!


You might rather want to have a look at

TreeView.AfterExpand Event

Occurs after the tree node is expanded.

or

TreeView.BeforeExpand Event

Occurs before the tree node is expanded.

0

精彩评论

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

关注公众号