Click here to Skip to main content
15,845,785 members
Home / Discussions / C#
   

C#

 
QuestionCalling a generic method with a typeof expression [modified] Pin
Lutosław5-Jul-08 8:34
Lutosław5-Jul-08 8:34 
AnswerRe: Initiating a generic type from a typeof expression Pin
leppie5-Jul-08 12:54
leppie5-Jul-08 12:54 
GeneralRe: Initiating a generic type from a typeof expression Pin
Lutosław6-Jul-08 2:03
Lutosław6-Jul-08 2:03 
GeneralRe: Initiating a generic type from a typeof expression Pin
leppie6-Jul-08 4:49
leppie6-Jul-08 4:49 
GeneralRe: Initiating a generic type from a typeof expression Pin
Lutosław6-Jul-08 9:04
Lutosław6-Jul-08 9:04 
GeneralRe: Initiating a generic type from a typeof expression Pin
leppie6-Jul-08 9:25
leppie6-Jul-08 9:25 
QuestionRSA key exchange Pin
nyjcr5-Jul-08 8:04
nyjcr5-Jul-08 8:04 
QuestionOverriding custom contol OnPaint Pin
hpjchobbes5-Jul-08 7:54
hpjchobbes5-Jul-08 7:54 
I am just starting to learn about creating custom controls using the book "GDI+ Custom Controls with Visual C# 2005". I am a little confused about overriding the control's OnPaint function. As a test, I created a custom control that has just a label. I then created the following code:
protected override void OnPaint(PaintEventArgs e)
        {
            // base.OnPaint(e);
        }


I figured that since I am not calling the base.OnPaint(e), that the label would not get displayed, however when I run this, the label still shows up. Can someone explain why overriding a custom control and not calling base.OnPaint(e) does not effect and controls that are part of the custom control?
AnswerRe: Overriding custom contol OnPaint Pin
Lutosław5-Jul-08 11:14
Lutosław5-Jul-08 11:14 
QuestionMDI Parent and Child Pin
benjamin yap5-Jul-08 6:27
benjamin yap5-Jul-08 6:27 
AnswerRe: MDI Parent and Child Pin
hpjchobbes5-Jul-08 9:04
hpjchobbes5-Jul-08 9:04 
GeneralRe: MDI Parent and Child [modified] Pin
benjamin yap6-Jul-08 1:08
benjamin yap6-Jul-08 1:08 
GeneralRe: MDI Parent and Child Pin
DaveyM696-Jul-08 2:33
professionalDaveyM696-Jul-08 2:33 
GeneralRe: MDI Parent and Child [modified] Pin
benjamin yap6-Jul-08 2:38
benjamin yap6-Jul-08 2:38 
GeneralRe: MDI Parent and Child Pin
DaveyM696-Jul-08 2:59
professionalDaveyM696-Jul-08 2:59 
GeneralRe: MDI Parent and Child Pin
benjamin yap6-Jul-08 3:07
benjamin yap6-Jul-08 3:07 
GeneralRe: MDI Parent and Child Pin
DaveyM696-Jul-08 3:18
professionalDaveyM696-Jul-08 3:18 
GeneralRe: MDI Parent and Child [modified] Pin
DaveyM696-Jul-08 5:16
professionalDaveyM696-Jul-08 5:16 
GeneralRe: MDI Parent and Child [modified] Pin
benjamin yap6-Jul-08 5:48
benjamin yap6-Jul-08 5:48 
GeneralRe: MDI Parent and Child Pin
DaveyM696-Jul-08 6:45
professionalDaveyM696-Jul-08 6:45 
GeneralRe: MDI Parent and Child [modified] Pin
benjamin yap6-Jul-08 7:00
benjamin yap6-Jul-08 7:00 
GeneralRe: MDI Parent and Child Pin
DaveyM696-Jul-08 9:12
professionalDaveyM696-Jul-08 9:12 
GeneralRe: MDI Parent and Child Pin
DaveyM696-Jul-08 10:22
professionalDaveyM696-Jul-08 10:22 
GeneralRe: MDI Parent and Child Pin
benjamin yap6-Jul-08 16:30
benjamin yap6-Jul-08 16:30 
GeneralRe: MDI Parent and Child Pin
DaveyM697-Jul-08 12:29
professionalDaveyM697-Jul-08 12:29 

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.