以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [已解决]如何在窗口中定义全局事件定义的过程名  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=70737)

--  作者:狐作非为
--  发布时间:2015/6/27 21:03:00
--  [已解决]如何在窗口中定义全局事件定义的过程名
全局代码:
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
   Syscmd.Row.AddNew()
End Sub
Public Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
   Syscmd.Row.Delete()
End Sub
Public Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
   CurrentTable.DataTable.save()
End Sub

窗口加载:
Dim ct2 As  New Windows.Forms.ToolStrip
e.Form.Panel.Controls.Add(ct2)
For i As Integer = 0 To aa.Length-1
    Dim Toolstripbuttoni As new windows.Forms.Toolstripbutton(aa(i))
    ct2.items.add(ToolStripButtoni)
    \'AddHandler ToolStripButtoni.Click, AddressOf Buttoni_Click      \\\\\\\\\\\\\\\\\\\\这句有问题,请指教!
Next
End If
[此贴子已经被作者于2015/6/27 21:17:08编辑过]

--  作者:狐作非为
--  发布时间:2015/6/27 21:17:00
--  
解决了,想错方法了。