Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get available gmail/yahoo.mail account automatically by C# Pin
Bernhard Hiller18-Nov-11 1:38
Bernhard Hiller18-Nov-11 1:38 
AnswerRe: How to get available gmail/yahoo.mail account automatically by C# Pin
Richard MacCutchan17-Nov-11 7:03
mveRichard MacCutchan17-Nov-11 7:03 
AnswerRe: How to get available gmail/yahoo.mail account automatically by C# Pin
Luc Pattyn17-Nov-11 7:33
sitebuilderLuc Pattyn17-Nov-11 7:33 
QuestionWhirlpool Hash Algorithm. Pin
Ratika Agarwal17-Nov-11 2:55
Ratika Agarwal17-Nov-11 2:55 
AnswerRe: Whirlpool Hash Algorithm. Pin
JF201517-Nov-11 3:00
JF201517-Nov-11 3:00 
GeneralRe: Whirlpool Hash Algorithm. Pin
Ratika Agarwal2-Jan-12 8:07
Ratika Agarwal2-Jan-12 8:07 
QuestionGDI+ draw text in custom control question (is this the right approach?) Pin
Blubbo17-Nov-11 2:02
Blubbo17-Nov-11 2:02 
AnswerRe: GDI+ draw text in custom control question (is this the right approach?) Pin
Luc Pattyn17-Nov-11 2:26
sitebuilderLuc Pattyn17-Nov-11 2:26 
That seems OK. I do have a few comments:

1.
CreateGraphics is an expensive and unnecessary operation, as there already is a PaintEventArgs,Graphics for free (which you can borrow but not Dispose of).

2.
I tend to create my fonts only once, and keep them alive through a class member; that works faster than creating and disposing a font on every Paint action.

3.
FYI: the bold style of a font tends to widen the font; if you want each and every character to have a constant width irrespective of style, then you'll have to position and paint individual characters; or be very selective on your fonts (although I haven't met one yet that doesn't widen when bold).

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: GDI+ draw text in custom control question (is this the right approach?) Pin
Blubbo17-Nov-11 3:22
Blubbo17-Nov-11 3:22 
GeneralRe: GDI+ draw text in custom control question (is this the right approach?) Pin
Blubbo17-Nov-11 3:39
Blubbo17-Nov-11 3:39 
GeneralRe: GDI+ draw text in custom control question (is this the right approach?) Pin
Pete O'Hanlon17-Nov-11 4:02
mvePete O'Hanlon17-Nov-11 4:02 
AnswerRe: GDI+ draw text in custom control question (is this the right approach?) Pin
Luc Pattyn17-Nov-11 4:21
sitebuilderLuc Pattyn17-Nov-11 4:21 
QuestionHow to pass non-remotable objects through AddIn-Pipeline?! Pin
dreiundzwanzig16-Nov-11 23:12
dreiundzwanzig16-Nov-11 23:12 
AnswerRe: How to pass non-remotable objects through AddIn-Pipeline?! Pin
BobJanova17-Nov-11 23:41
BobJanova17-Nov-11 23:41 
General[closed] Re: How to pass non-remotable objects through AddIn-Pipeline?! Pin
dreiundzwanzig21-Nov-11 4:31
dreiundzwanzig21-Nov-11 4:31 
QuestionSpecify order in Type.GetMembers() Pin
AmitDey16-Nov-11 22:32
AmitDey16-Nov-11 22:32 
AnswerRe: Specify order in Type.GetMembers() Pin
Pete O'Hanlon16-Nov-11 22:47
mvePete O'Hanlon16-Nov-11 22:47 
GeneralRe: Specify order in Type.GetMembers() Pin
AmitDey16-Nov-11 22:51
AmitDey16-Nov-11 22:51 
GeneralRe: Specify order in Type.GetMembers() Pin
Pete O'Hanlon16-Nov-11 22:55
mvePete O'Hanlon16-Nov-11 22:55 
AnswerRe: Specify order in Type.GetMembers() Pin
BobJanova16-Nov-11 23:07
BobJanova16-Nov-11 23:07 
AnswerRe: Specify order in Type.GetMembers() Pin
BillWoodruff16-Nov-11 23:11
professionalBillWoodruff16-Nov-11 23:11 
QuestionRe: Specify order in Type.GetMembers() Pin
Rob Philpott17-Nov-11 1:23
Rob Philpott17-Nov-11 1:23 
Questionto develop web based helpdesk application (visual studio 2005) Pin
sk_ko16-Nov-11 21:28
sk_ko16-Nov-11 21:28 
AnswerRe: to develop web based helpdesk application (visual studio 2005) Pin
Richard MacCutchan16-Nov-11 21:47
mveRichard MacCutchan16-Nov-11 21:47 
GeneralRe: to develop web based helpdesk application (visual studio 2005) Pin
sk_ko16-Nov-11 22:10
sk_ko16-Nov-11 22:10 

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.