Click here to Skip to main content
15,910,878 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check presence of event handler attached to base class event Pin
jjansen3-Jul-06 1:28
jjansen3-Jul-06 1:28 
GeneralRe: Check presence of event handler attached to base class event Pin
Martin#3-Jul-06 1:47
Martin#3-Jul-06 1:47 
GeneralRe: Check presence of event handler attached to base class event Pin
jjansen3-Jul-06 1:50
jjansen3-Jul-06 1:50 
AnswerRe: Check presence of event handler attached to base class event Pin
J4amieC3-Jul-06 1:08
J4amieC3-Jul-06 1:08 
GeneralRe: Check presence of event handler attached to base class event Pin
jjansen3-Jul-06 1:11
jjansen3-Jul-06 1:11 
AnswerRe: Check presence of event handler attached to base class event [modified] Pin
Josh Smith3-Jul-06 4:18
Josh Smith3-Jul-06 4:18 
GeneralRe: Check presence of event handler attached to base class event Pin
jjansen3-Jul-06 20:05
jjansen3-Jul-06 20:05 
AnswerRe: Check presence of event handler attached to base class event Pin
Andrew Lygin3-Jul-06 7:16
Andrew Lygin3-Jul-06 7:16 
Just define your own Paint event with the "new" keyword and add logic to "add" and "remove" accessors. For example:
<br />
private PaintEventHandler myPaint;<br />
<br />
public new event PaintEventHandler Paint<br />
{<br />
    add<br />
    {<br />
        base.Paint += value;<br />
        myPaint += value;<br />
    }<br />
<br />
    remove<br />
    {<br />
        base.Paint -= value;<br />
        myPaint -= value;<br />
    }<br />
}<br />
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
    if (myPaint != null)<br />
        base.OnPaint(e);<br />
    else<br />
        MyDefaultPainting(e);<br />
}<br />

GeneralRe: Check presence of event handler attached to base class event Pin
jjansen3-Jul-06 20:15
jjansen3-Jul-06 20:15 
QuestionMail Editor Like the one in Microsoft Outlook Pin
Sushant Duggal3-Jul-06 0:25
Sushant Duggal3-Jul-06 0:25 
GeneralRe: Mail Editor Like the one in Microsoft Outlook Pin
Andrew Lygin3-Jul-06 7:32
Andrew Lygin3-Jul-06 7:32 
GeneralRe: Mail Editor Like the one in Microsoft Outlook Pin
Dave Kreskowiak3-Jul-06 7:47
mveDave Kreskowiak3-Jul-06 7:47 
GeneralRe: Mail Editor Like the one in Microsoft Outlook Pin
Andrew Lygin3-Jul-06 8:13
Andrew Lygin3-Jul-06 8:13 
GeneralRe: Mail Editor Like the one in Microsoft Outlook Pin
Dave Kreskowiak3-Jul-06 17:36
mveDave Kreskowiak3-Jul-06 17:36 
GeneralRe: Mail Editor Like the one in Microsoft Outlook Pin
Andrew Lygin3-Jul-06 18:20
Andrew Lygin3-Jul-06 18:20 
QuestionHow to get a list of active USB and Floppy-devices? (2nt) Pin
Martin#3-Jul-06 0:10
Martin#3-Jul-06 0:10 
AnswerRe: How to get a list of active USB and Floppy-devices? (2nt) Pin
Tarakeshwar Reddy3-Jul-06 0:44
professionalTarakeshwar Reddy3-Jul-06 0:44 
GeneralRe: How to get a list of active USB and Floppy-devices? (2nt) Pin
Martin#3-Jul-06 0:49
Martin#3-Jul-06 0:49 
QuestionRe: How to get a list of active USB and Floppy-devices? (2nt) [modified] Pin
Martin#3-Jul-06 1:11
Martin#3-Jul-06 1:11 
AnswerRe: How to get a list of active USB and Floppy-devices? (2nt) [modified] Pin
Tarakeshwar Reddy3-Jul-06 1:35
professionalTarakeshwar Reddy3-Jul-06 1:35 
GeneralRe: How to get a list of active USB and Floppy-devices? (2nt) Pin
Martin#3-Jul-06 1:41
Martin#3-Jul-06 1:41 
GeneralRe: How to get a list of active USB and Floppy-devices? (2nt) [modified] Pin
Martin#3-Jul-06 1:44
Martin#3-Jul-06 1:44 
QuestionWhat can C# do project.?help. Pin
nguyenquang02842-Jul-06 22:17
nguyenquang02842-Jul-06 22:17 
AnswerRe: What can C# do project.?help. Pin
Colin Angus Mackay2-Jul-06 23:03
Colin Angus Mackay2-Jul-06 23:03 
GeneralRe: What can C# do project.?help. Pin
nguyenquang02842-Jul-06 23:25
nguyenquang02842-Jul-06 23:25 

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.