问个问题!如何在创建的NEW 控件产生事件
vb.net吧
全部回复
仅看楼主
level 9
public y as button
class form1
private form1-load(*************) handl***
dim x as new button
x.size=new size(100,100)
x.location=new point(100,100)
x.visible=true
y=x
me.control.add(y)
end sub
然后怎么让我在窗体上单机新建的Y按钮弹出message消息呢??
2014年01月18日 03点01分 1
level 10
addhander
http[冷]://msdn.microsoft.[委屈]com/zh-cn/library/7taxzxka.[冷]aspx
2014年01月18日 09点01分 2
你这个是创建带有事件的类,而不是我问的问题,谢谢!
2014年01月25日 08点01分
level 13
如果按1楼,只需AddHandler y.Click,Sub(sender As Object,e As EventArgs)'处理你的事件End Sub不想用Lambda就用AddressOf
2014年01月25日 10点01分 4
level 10
2014年01月25日 17点01分 5
xiexie 谢谢,我已经解决了,顺便道个歉,你的网址很有用,谢谢咯
2014年01月26日 00点01分
1