L
Larry Lard
Experiment A:
Start a new Windows Forms project. Double click Form1. This is what is
generated:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Experiment B:
Start a new Windows Forms project. Go to the code window for Form1.
Choose 'Form 1 events' from the left combo, then choose 'Load' from the
right combo. This is what is generated:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Note that in A, sender is 'System.Object', whereas in B it is 'Object'.
Weird, huh?
Start a new Windows Forms project. Double click Form1. This is what is
generated:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Experiment B:
Start a new Windows Forms project. Go to the code window for Form1.
Choose 'Form 1 events' from the left combo, then choose 'Load' from the
right combo. This is what is generated:
Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Note that in A, sender is 'System.Object', whereas in B it is 'Object'.
Weird, huh?