Or you could just call the Button.PerformClick method.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 12:43 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: RE: [C#.NET] Switch and can't convert

>Now do you know how to create a button click event in >code?

You can always call a click event handler from your code (in addition to
Windows invoking it). However, if there's some processing that could
occur due to multiple reasons, I would put that code in a separate
function that the click event handler calls. This new function is what
you would call from your code as you described. This separate function
would also make it easier to put it in a async delegate if needed in the
future (or if needed for only certain scenarios).

kevin aubuchon


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to