private void treeView1_BeforeCheck(object sender, TreeViewCancelEventArgs e){ if (判断正确) { e.Cancel = true; } }