Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: VS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 11:24
hasantayyar11-Apr-06 11:24 
GeneralRe: VS 2005 with netFramework 1.1 ? Pin
Ed.Poore11-Apr-06 11:42
Ed.Poore11-Apr-06 11:42 
AnswerRe: VS 2005 with netFramework 1.1 ? Pin
Graham Nimbley11-Apr-06 14:23
Graham Nimbley11-Apr-06 14:23 
GeneralMSBuild Toolkit ? Pin
hasantayyar11-Apr-06 20:26
hasantayyar11-Apr-06 20:26 
GeneralRe: MSBuild Toolkit ? Pin
Graham Nimbley12-Apr-06 6:49
Graham Nimbley12-Apr-06 6:49 
QuestionAccess database in winME Pin
neliocc11-Apr-06 9:20
neliocc11-Apr-06 9:20 
AnswerRe: Access database in winME Pin
Ed.Poore11-Apr-06 10:48
Ed.Poore11-Apr-06 10:48 
QuestionLooking for a base class with typeof? Pin
Andrew Stampor11-Apr-06 8:45
Andrew Stampor11-Apr-06 8:45 
I have a case where several objects may trigger an event that is handled in one place. I use the sender object type to determine whether I should perform some task on the object. However, how can I catch the condition where an object inherits from the type of object I am interested in? I'd like to include that object as well.

Here is an example of what I am doing:
<br />
if (sender.GetType() == typeof(CMyClass) )<br />
{<br />
   //Do Something<br />
}<br />

If something is derived from CMyClass, I'd like it to go through the "Do Something" code. How can I check for it?
AnswerRe: Looking for a base class with typeof? Pin
Robert Rohde11-Apr-06 8:50
Robert Rohde11-Apr-06 8:50 
GeneralRe: Looking for a base class with typeof? Pin
Andrew Stampor11-Apr-06 9:00
Andrew Stampor11-Apr-06 9:00 
AnswerRe: Looking for a base class with typeof? Pin
Guffa11-Apr-06 8:57
Guffa11-Apr-06 8:57 
GeneralRe: Looking for a base class with typeof? Pin
Andrew Stampor11-Apr-06 9:02
Andrew Stampor11-Apr-06 9:02 
QuestionDelegates Pin
MrEyes11-Apr-06 7:59
MrEyes11-Apr-06 7:59 
AnswerRe: Delegates Pin
Robert Rohde11-Apr-06 8:48
Robert Rohde11-Apr-06 8:48 
QuestionShow tray app context menu on left-click? Pin
rickell11-Apr-06 7:54
rickell11-Apr-06 7:54 
AnswerRe: Show tray app context menu on left-click? Pin
Stefan Troschuetz11-Apr-06 22:12
Stefan Troschuetz11-Apr-06 22:12 
GeneralRe: Show tray app context menu on left-click? Pin
rickell18-Apr-06 4:13
rickell18-Apr-06 4:13 
GeneralRe: Show tray app context menu on left-click? Pin
Stefan Troschuetz18-Apr-06 23:29
Stefan Troschuetz18-Apr-06 23:29 
QuestionNeeds some help with hit testing Pin
truly_pringled11-Apr-06 7:19
truly_pringled11-Apr-06 7:19 
AnswerRe: Needs some help with hit testing Pin
_Bao_11-Apr-06 22:47
_Bao_11-Apr-06 22:47 
QuestionApplication exits unexpectedly and without errors Pin
Ricardo Mendes11-Apr-06 7:00
Ricardo Mendes11-Apr-06 7:00 
AnswerRe: Application exits unexpectedly and without errors Pin
_Bao_11-Apr-06 22:37
_Bao_11-Apr-06 22:37 
GeneralRe: Application exits unexpectedly and without errors Pin
Ricardo Mendes12-Apr-06 1:32
Ricardo Mendes12-Apr-06 1:32 
GeneralRe: Application exits unexpectedly and without errors Pin
_Bao_12-Apr-06 3:15
_Bao_12-Apr-06 3:15 
QuestionServer.MapPath() and AJAX Pin
Canastro11-Apr-06 6:58
Canastro11-Apr-06 6:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.