Form2
Event AAA(byval A as Integer)
RaiseEvent AAA(“A”)
Form1
dim mForm2 as new Form2
AddHandler mForm2.AAA ,AddressOf BBB
Sub BBB(Byval C as Integer)
就是这样的VB语法。
C# 不知道怎么实现。
...全文
1059打赏收藏
窗体间事件响应,和数据交换在C#中如何做。本人只会VB。
Form2 Event AAA(byval A as Integer) RaiseEvent AAA(“A”) Form1 dim mForm2 as new Form2 AddHandler mForm2.AAA ,AddressOf BBB Sub BBB(Byval C as Integer) 就是这样的VB语法。 C# 不知道怎么实现。