Click here to Skip to main content
15,915,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: Big Problem with multicasting. Pin
leppie4-Jan-04 11:12
leppie4-Jan-04 11:12 
GeneralRe: Big Problem with multicasting. Pin
HAHAHA_NEXT4-Jan-04 16:13
HAHAHA_NEXT4-Jan-04 16:13 
GeneralRe: Big Problem with multicasting. Pin
Heath Stewart4-Jan-04 18:22
protectorHeath Stewart4-Jan-04 18:22 
GeneralRe: Big Problem with multicasting. Pin
leppie5-Jan-04 6:24
leppie5-Jan-04 6:24 
GeneralRe: Big Problem with multicasting. Pin
HAHAHA_NEXT5-Jan-04 7:10
HAHAHA_NEXT5-Jan-04 7:10 
GeneralRe: Big Problem with multicasting. Pin
Alois Kraus8-Jan-04 7:40
Alois Kraus8-Jan-04 7:40 
GeneralRe: Big Problem with multicasting. Pin
HAHAHA_NEXT8-Jan-04 8:28
HAHAHA_NEXT8-Jan-04 8:28 
GeneralFinding out when a Item comes into the display area of a ListView Pin
ne20004-Jan-04 10:41
ne20004-Jan-04 10:41 
GeneralRe: Finding out when a Item comes into the display area of a ListView Pin
Heath Stewart4-Jan-04 18:19
protectorHeath Stewart4-Jan-04 18:19 
GeneralString Width Pin
Luther Baker4-Jan-04 10:38
Luther Baker4-Jan-04 10:38 
GeneralRe: String Width Pin
ne20004-Jan-04 10:43
ne20004-Jan-04 10:43 
GeneralRe: String Width Pin
markdbd4-Jan-04 19:31
markdbd4-Jan-04 19:31 
GeneralRe: String Width Pin
Luther Baker6-Jan-04 18:27
Luther Baker6-Jan-04 18:27 
GeneralRe: String Width Pin
Luther Baker7-Jan-04 11:39
Luther Baker7-Jan-04 11:39 
Ok - I know this is a naive question, but where do I get a graphics object.

I am not in an event handler. I am in my custom control's constructor. Its not attached to anything. I just create a button and I've set the Text property, and now I want to set the Size property.

It seems that I can't create an instance of the graphics object ... and this is not a static method.

I'm not a GDI+ expert but I would guess that I can't just create a Graphics object because there is more to the drawing context that must be defined. Where am I drawing? Which window are we drawing to, etc. Maybe I can must measure the string size in the OnPaint handler (using the parameterized graphics object).

Thanks,

-Luther
GeneralComboBox Pin
Luther Baker4-Jan-04 9:46
Luther Baker4-Jan-04 9:46 
GeneralRe: ComboBox Pin
Nick Parker4-Jan-04 10:06
protectorNick Parker4-Jan-04 10:06 
GeneralRe: ComboBox Pin
Charlie Williams4-Jan-04 10:07
Charlie Williams4-Jan-04 10:07 
GeneralRe: ComboBox Pin
Luther Baker4-Jan-04 10:39
Luther Baker4-Jan-04 10:39 
GeneralCustom Control Pin
Luther Baker4-Jan-04 8:59
Luther Baker4-Jan-04 8:59 
GeneralRe: Custom Control Pin
Heath Stewart4-Jan-04 18:15
protectorHeath Stewart4-Jan-04 18:15 
GeneralRe: Custom Control Pin
Luther Baker6-Jan-04 18:21
Luther Baker6-Jan-04 18:21 
GeneralRe: Custom Control Pin
Heath Stewart6-Jan-04 18:59
protectorHeath Stewart6-Jan-04 18:59 
GeneralRe: Custom Control Pin
Luther Baker6-Jan-04 19:26
Luther Baker6-Jan-04 19:26 
QuestionI should use what provider? Pin
god4k4-Jan-04 7:23
god4k4-Jan-04 7:23 
AnswerRe: I should use what provider? Pin
Guillermo Rivero4-Jan-04 8:11
Guillermo Rivero4-Jan-04 8:11 

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.