"John Dann" <news@prodata.co.uk> schrieb:
> Sorry I've forgotten what parameter for EventArgs to pass to
> a button click-handling event handler if I simply want to call
> it from code, ie
>
> Button_click(Me, ???)
'EventArgs.Empty'. But I prefer calling the button's 'PerformClick' method
(which will only fire the event if the button is visible and enabled).
> directly from other code? The other option could be to place the click
> handler code in a separate subroutine (ClickHandler) which could be
> called both from the click handling event procedure and also from
> anywhere else that it might be relevant without worrying about the
> event arguments.
That's IMO the preferred way.

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/