P
Paul Hadfield
All,
I'm trying to understand how to call an event from within my own code
(VB.Net 2003). For example, when creating a new form with a new button - the
following method is generated when clicking the button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
End Sub
But if I wanted to manually run the Button1_Click method from within one of
my own methods - how do I do it? I've tried Button1_Click() but I don't
quite understand the variables that I need to pass to make it work exactly
as though the user had clicked on the button..
Cheers in advance,
Paul
I'm trying to understand how to call an event from within my own code
(VB.Net 2003). For example, when creating a new form with a new button - the
following method is generated when clicking the button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
End Sub
But if I wanted to manually run the Button1_Click method from within one of
my own methods - how do I do it? I've tried Button1_Click() but I don't
quite understand the variables that I need to pass to make it work exactly
as though the user had clicked on the button..
Cheers in advance,
Paul