-1

I need to programmatically click a treeview treenode so that the NodeClick event fires. I used to be able to call Select(), but with this version of .NET (4) that method has gone away.

Anyone know what the new approach is?

Thanks, Mike

4

1 回答 1

1

您在哪里见过 TreeNode 上的 Select() 方法?我肯定错过了什么 :-)

无论如何,如果你想选择节点,你可以这样做:

TreeNode node;
node.TreeView.SelectedNode = node;
于 2011-01-19T18:02:16.783 回答