紧急请C#高手看看,一个错误.不知道怎么修改下!!!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace WindowsApplication9
{
public partial class Form1 : Form
{
//获取当前选定的节点值
public int CurrentVal = 0;
//获取控件树的深度
public int pubDeep = 0;
// 获取子树节点的个数
public int pubChildNum = 0;
//获取当前节点对象
public TreeNode CurrentNode = null;
public Form1()
{
InitializeComponent();
}
//private void toolStripLabel1_Click(object sender, EventArgs e)
//{
// /////
//}
//private void toolTip1_Popup(object sender, PopupEventArgs e)
//{
// /////
//}
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
TreeNode tn = treeView1.GetNodeAt(e.X, e.Y);
if (tn != null)
{
this.treeView1.SelectedNode = tn;