Hello,
If I drag a button to the form, when the user clicks the button to fire an event.
The code looks like
It's very short and simple.Code:Private Sub button1_Click(ByVal sender As System.Object,_
ByVal e As System.EventArgs) Handles button1.Click
text1.Text = "Hello World!"
End Sub
My question is shall I define the button as
I haven't defined it but it works well.Code:Friend WithEvents button1 As Button
I saw some books define it.
Is it unnecessary?
Thanks for your time.
