求在vs2008中用vb做treeview控件中 实现选择节点触发事件的方法 20
展开全部
There are couple things you can do, example, there is treeView object, called "mytreeView",
1. private void mytreeView_MouseDoubleClick(object sender, MouseEventArgs e)
{
//
// Get the selected node.
//
TreeNode node = treeView1.SelectedNode;
.....
2. private void mytreeView_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
{
if (e.Action == TreeViewAction.ByMouse)
.....
1. private void mytreeView_MouseDoubleClick(object sender, MouseEventArgs e)
{
//
// Get the selected node.
//
TreeNode node = treeView1.SelectedNode;
.....
2. private void mytreeView_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
{
if (e.Action == TreeViewAction.ByMouse)
.....
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询