Dim contextMenuStrip1 As Windows.Forms.ContextMenuStrip = New System.Windows.Forms.ContextMenuStrip
Dim toolStripMenuItem1 As Windows.Forms.ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
Dim toolStripMenuItem2 As Windows.Forms.ToolStripMenuItem= New System.Windows.Forms.ToolStripMenuItem
Dim toolStripMenuItem3 As Windows.Forms.ToolStripMenuItem= New System.Windows.Forms.ToolStripMenuItem
Dim toolStripMenuItem6 As Windows.Forms.ToolStripMenuItem= New System.Windows.Forms.ToolStripMenuItem
Dim toolStripMenuItem7 As Windows.Forms.ToolStripMenuItem= New System.Windows.Forms.ToolStripMenuItem
Dim toolStripMenuItem5 As Windows.Forms.ToolStripMenuItem= New System.Windows.Forms.ToolStripMenuItem
contextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {toolStripMenuItem1, toolStripMenuItem2, toolStripMenuItem3})
contextMenuStrip1.Name = "contextMenuStrip1"
contextMenuStrip1.Size = New System.Drawing.Size(153, 114)
'
'toolStripMenuItem1
'
toolStripMenuItem1.Name = "toolStripMenuItem1"
toolStripMenuItem1.Size = New System.Drawing.Size(152, 22)
toolStripMenuItem1.Text = "重命名"
'
'toolStripMenuItem2
'
toolStripMenuItem2.Name = "toolStripMenuItem2"
toolStripMenuItem2.Size = New System.Drawing.Size(76, 22)
toolStripMenuItem2.Text = "增加目录"
'
'toolStripMenuItem3
'
toolStripMenuItem3.Name = "toolStripMenuItem3"
toolStripMenuItem3.Size = New System.Drawing.Size(76, 22)
toolStripMenuItem3.Text = "删除目录"
Return contextMenuStrip1
老师我把这段代码定义为内部函数
但是我不太明白该怎么写才能 在点击"重命名"的时候才能作用在treeviwe1上的节点名称.并且"表A"的"列1"也同步更改
[此贴子已经被作者于2015/7/26 15:52:04编辑过]