private void treeView1_AfterSelect(object sender,TreeViewEventArgs e) { switch (e.Node.Tag.ToString())//字符串 { case "1"://注意字符串夹引号,以下均是 Dangan(); break; case "2": Jiangfang(); break; case "3": Diaodong(); break; case "4": Kaoping(); break; } }
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object,ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect Select Case (e.Node.Tag) '数值 Case 1 '看到同c#中的区别了吗 ConAdd() Case 2 ConModify() Case 3 ConFindPrint() Case 4 ConSumLeft() Case 5 Stock() Case 6 StockDown() Case 7 CusAdd() Case 8 CusModify() Case 9 CusFindPrint() Case 10 Product() Case 11 ProModify() Case 12 Welcome() Case 13 Setting() End Select End Sub
欲知更多,请移步: http://er.biao.blog.163.com/