110,566
社区成员
发帖
与我相关
我的任务
分享
我来抢分
在nodemouseclick时间里面加上判断,判断用户点击的是不是内容
[code=C#]private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) {
// Check whether the user has clicked the content part instead of the +/- image
if(e.Node.Bounds.Contains(e.Location)) {
// add your operations here
}
}
[/code]