摘要:
看看下面两段代码就知道了Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click'Add Event Handler Code HereEnd SubPrivate Sub Button1_Click(ByVal sender As Syst... 阅读全文
摘要:
界面上拉一个按钮双击该按钮在其代码中把后面的Handles...删除代码写上MessageBox.Show("OK")再拉一个按钮双击该按钮代码写上AddHandler Button1.Click, AddressOf Button1_Click运行程序点击第一个按钮,不会有提示点击第二个按钮后,再点击第一个按钮,则提示信息 阅读全文