Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dialog Issue Pin
Martin#15-Feb-08 1:09
Martin#15-Feb-08 1:09 
GeneralRe: Dialog Issue Pin
Harvey Saayman15-Feb-08 1:11
Harvey Saayman15-Feb-08 1:11 
GeneralRe: Dialog Issue Pin
Martin#15-Feb-08 1:26
Martin#15-Feb-08 1:26 
GeneralRe: Dialog Issue Pin
Harvey Saayman15-Feb-08 1:25
Harvey Saayman15-Feb-08 1:25 
GeneralRe: Dialog Issue Pin
Martin#15-Feb-08 1:33
Martin#15-Feb-08 1:33 
QuestionConverting FontSize into float-value Pin
Brutus14-Feb-08 23:00
Brutus14-Feb-08 23:00 
GeneralRe: Converting FontSize into float-value Pin
Christian Graus14-Feb-08 23:16
protectorChristian Graus14-Feb-08 23:16 
GeneralRe: Converting FontSize into float-value Pin
Brutus14-Feb-08 23:45
Brutus14-Feb-08 23:45 
Yes, I could strip "pt" first, but the thing is that FontSize can be "Large", "Larger" etc. as well, so it's not always a "pt"-value. The size of the graphics-font I'm creating should correspond with the size of the original text-font, but the graphics-font is asking for a float value like this:
Font pFONT = new Font(sFontName, (float) iFontSize);
pGRAPH.DrawString("Text", pFONT, pBRUSH, 2, 2);

So, I'm looking for a way to somehow convert the original FontSize into a float-value.
GeneralRe: Converting FontSize into float-value Pin
Mircea Puiu15-Feb-08 0:23
Mircea Puiu15-Feb-08 0:23 
GeneralRe: Converting FontSize into float-value Pin
Brutus15-Feb-08 0:42
Brutus15-Feb-08 0:42 
GeneralRe: Converting FontSize into float-value Pin
Mircea Puiu15-Feb-08 1:41
Mircea Puiu15-Feb-08 1:41 
GeneralRe: Converting FontSize into float-value Pin
Brutus15-Feb-08 2:07
Brutus15-Feb-08 2:07 
GeneralP/Invoke problem in migrating 32 bit to 64bit application! Pin
TaiZhong14-Feb-08 21:50
TaiZhong14-Feb-08 21:50 
GeneralRe: P/Invoke problem in migrating 32 bit to 64bit application! Pin
Mike Dimmick15-Feb-08 0:25
Mike Dimmick15-Feb-08 0:25 
GeneralEquivalent to call in c#.net Pin
pekhaleyogesh14-Feb-08 21:43
pekhaleyogesh14-Feb-08 21:43 
GeneralRe: Equivalent to call in c#.net Pin
Christian Graus14-Feb-08 21:46
protectorChristian Graus14-Feb-08 21:46 
GeneralRe: Equivalent to call in c#.net Pin
pekhaleyogesh14-Feb-08 21:53
pekhaleyogesh14-Feb-08 21:53 
GeneralRe: Equivalent to call in c#.net Pin
Roger Alsing14-Feb-08 21:59
Roger Alsing14-Feb-08 21:59 
GeneralRe: Equivalent to call in c#.net Pin
pekhaleyogesh15-Feb-08 1:07
pekhaleyogesh15-Feb-08 1:07 
GeneralRe: Equivalent to call in c#.net Pin
N a v a n e e t h14-Feb-08 21:46
N a v a n e e t h14-Feb-08 21:46 
GeneralCasting and performance Pin
N a v a n e e t h14-Feb-08 21:33
N a v a n e e t h14-Feb-08 21:33 
Generalprogress help Pin
abcomp0114-Feb-08 21:03
abcomp0114-Feb-08 21:03 
GeneralRe: progress help Pin
Christian Graus14-Feb-08 21:47
protectorChristian Graus14-Feb-08 21:47 
Questionstarting and stopping the sql server programaticaly Pin
Sonia Gupta14-Feb-08 19:42
Sonia Gupta14-Feb-08 19:42 
GeneralRe: starting and stopping the sql server programaticaly Pin
Giorgi Dalakishvili14-Feb-08 20:21
mentorGiorgi Dalakishvili14-Feb-08 20:21 

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.