RE: Click a button on the form via code?
- From: "Brendan Grant" <grantb@xxxxxxxxxxxxxxx>
- Date: Thu, 18 Aug 2005 11:31:16 -0700
I forgot to mention, the code in my previous reply is for if you are making
that call from another thread and want the call to occur within the main
thread.
Otherwise, if both are the same thread, you can simply call the function
from within the class with:
btnExit_Click(this, EventArgs.Empty);
Brendan
"vbMark" wrote:
> I want to call this function via code:
>
>
> private void btnExit_Click(object sender, System.EventArgs e)
> {
> Close();
> }
>
>
> How do I do this?
>
> Thanks!
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> http://www.vbmark.com
> Get freeware, learn things, make money.
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
.
- Follow-Ups:
- RE: Click a button on the form via code?
- From: vbMark
- RE: Click a button on the form via code?
- References:
- Click a button on the form via code?
- From: vbMark
- Click a button on the form via code?
- Prev by Date: Re: How to add additional info to a delegate instance? (mimic java EventListenerProxy)
- Next by Date: Re: Calling C# DLL from C
- Previous by thread: RE: Click a button on the form via code?
- Next by thread: RE: Click a button on the form via code?
- Index(es):
Relevant Pages
|