Herfried
Mon Jan 24 09:34:38 CST 2005
"Chris" <Chris@discussions.microsoft.com> schrieb:
> Is it possible to call a button's click event from another procedure? If
> so, what needs to be supplied as the Object , and SysEventArgs parameters
> for
> the click procedure?
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.
--
M S Herfried K. Wagner
M V P <URL:
http://dotnet.mvps.org/>
V B <URL:
http://dotnet.mvps.org/dotnet/faqs/>