VB.NET的这种功能--一个处理对几个控件

看看下面两段代码就知道了
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Add Event Handler Code Here
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click
'Add Event Handler Code Here
End Sub

你可能感兴趣的:(VB.NET)