John,
"John Wels" <dv*@post.sk> schrieb:
How can I call some event in my code.
[...]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As [...]
and in other place in code I want call event Button1_click.
If the button is visible and enabled, you can call its 'PerformClick'
method. Alterantively you can take the code from the event handler and put
it into a separate procedure. This procedure can be called from within the
event handler and other procedures. If you really want to call the button's
'Click' event handler for some reason, you can pass 'EventArgs.Empty' in the
'e' parameter.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>