111,119
社区成员
发帖
与我相关
我的任务
分享
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (!e.Node.IsExpanded & treeView1.HitTest(e.X, e.Y).Location != TreeViewHitTestLocations.PlusMinus)
{
e.Node.Expand();
}
}
}