在TreeView的NodeMouseClick事件處理函式中使用以下程式碼;
private void treeView_ProgramList_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e != null)
{
TreeViewHitTestInfo hit = ((TreeView)sender).HitTest(e.Location);
if (hit.Location == TreeViewHitTestLocations.PlusMinus)
return;
}
......
}
沒有留言:
張貼留言