HighTechTalks DotNet Forums  

Call a Click event

CSharp microsoft.public.dotnet.languages.csharp


Discuss Call a Click event in the CSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
John S
 
Posts: n/a

Default Call a Click event - 07-01-2004 , 07:24 AM






Is it possible to call the click event of a control from another method or
class?



Reply With Quote
  #2  
Old   
Tamir Khason
 
Posts: n/a

Default Re: Call a Click event - 07-01-2004 , 08:26 AM






Override OnClick event and Call it from public function
protected override void OnClick(EventArgs e)

{

base.OnClick (e);

}

public void ClickMe()

{

OnClick(null);

}


--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "


"John S" <john_sutor (AT) cinfin (DOT) com> wrote

Quote:
Is it possible to call the click event of a control from another method or
class?





Reply With Quote
  #3  
Old   
Uri Dor
 
Posts: n/a

Default Re: Call a Click event - 07-01-2004 , 08:40 AM



no. that's the difference between 'event' and 'delegate' - 'event's can
only be fired by the object that holds them

John S wrote:

Quote:
Is it possible to call the click event of a control from another method or
class?



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.