By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

EventArgs

P: n/a


I have two different events firing the same event. How can I get the
type of event that called it (either leave or valuechanged or click)? I
have done this before but I cannot remember how.

*** Sent via Developersdex http://www.developersdex.com ***
Sep 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
HI,

Two events firing the same events?

I think you mean the same method that handle two events.

I think this is a design problem why are you using the same method IF you
want to know (and possible handle differentely) what event raised it?

What I would do is refactor it, I will create one method with the common
functionality and one method for each event that do the especifics actions
that you want to differentiate.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"John Sutor" <jp*****@yahoo.comwrote in message
news:uV**************@TK2MSFTNGP05.phx.gbl...
>

I have two different events firing the same event. How can I get the
type of event that called it (either leave or valuechanged or click)? I
have done this before but I cannot remember how.

*** Sent via Developersdex http://www.developersdex.com ***

Sep 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.