日期:2014-05-18  浏览次数:20997 次

winform 怎样屏蔽Treeview的快捷键
如题,怎样屏蔽TreeView用快捷键f2修改啊,间隔两次点击的修改, 在线等,,,

------解决方案--------------------
private void treeView1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyValue == 113)
{ ...... }
}
------解决方案--------------------
private void treeView1_MouseDoubleClick(object sender, MouseEventArgs e)
{
if(e.Button==System.Windows.Forms.MouseButtons.Left)
{......}
}