Click here to Skip to main content
15,898,790 members
Home / Discussions / C#
   

C#

 
GeneralRe: Find the not-existing element in int arrays. Pin
CodingLover28-Jun-09 20:44
CodingLover28-Jun-09 20:44 
GeneralRe: Find the not-existing element in int arrays. Pin
Dust Signs29-Jun-09 4:53
Dust Signs29-Jun-09 4:53 
AnswerRe: Find the not-existing element in int arrays. Pin
PIEBALDconsult24-Jun-09 4:53
mvePIEBALDconsult24-Jun-09 4:53 
Questionmeasure string Pin
nryk24-Jun-09 0:23
nryk24-Jun-09 0:23 
AnswerRe: measure string Pin
AndrewVos24-Jun-09 0:26
AndrewVos24-Jun-09 0:26 
GeneralRe: measure string Pin
nryk24-Jun-09 0:48
nryk24-Jun-09 0:48 
AnswerRe: measure string Pin
Pete O'Hanlon24-Jun-09 1:05
mvePete O'Hanlon24-Jun-09 1:05 
AnswerRe: measure string Pin
Ennis Ray Lynch, Jr.24-Jun-09 3:05
Ennis Ray Lynch, Jr.24-Jun-09 3:05 
The Graphics context dictates the way the Fonts are rendered. It is not possible to accurately measure a string without knowing where it is going. All other option require guessing in the method. If you want to guess you can look-up the font characteristics and roll your own, or as suggested earlier create a fake graphics context that does not match the device. Unfortunately, it will be buggy in some edge cases that may be hard to detect in development but the client will notice immediately. The best thing to do is to pass a reference to the Graphics context everywhere you want to draw to a device.


Need custom software developed? I do C# development and consulting all over the United States.

A man said to the universe:
"Sir I exist!"
"However," replied the universe,
"The fact has not created in me
A sense of obligation."
--Stephen Crane


QuestionDebugging Pin
frommi24-Jun-09 0:15
frommi24-Jun-09 0:15 
AnswerRe: Debugging Pin
Manas Bhardwaj24-Jun-09 0:24
professionalManas Bhardwaj24-Jun-09 0:24 
Questionc# Pin
Balaji Pawar23-Jun-09 23:53
Balaji Pawar23-Jun-09 23:53 
AnswerRe: c# Pin
Sk9323-Jun-09 23:55
Sk9323-Jun-09 23:55 
GeneralRe: c# Pin
Balaji Pawar24-Jun-09 5:48
Balaji Pawar24-Jun-09 5:48 
GeneralRe: c# Pin
Sk9324-Jun-09 5:52
Sk9324-Jun-09 5:52 
AnswerRe: c# Pin
Manas Bhardwaj24-Jun-09 0:26
professionalManas Bhardwaj24-Jun-09 0:26 
Questionupdate query in windows application with ms access as database Pin
J.K.Sharma23-Jun-09 23:20
J.K.Sharma23-Jun-09 23:20 
AnswerRe: update query in windows application with ms access as database Pin
Sk9323-Jun-09 23:26
Sk9323-Jun-09 23:26 
GeneralRe: update query in windows application with ms access as database Pin
Robert_Pan24-Jun-09 0:12
Robert_Pan24-Jun-09 0:12 
GeneralRe: update query in windows application with ms access as database Pin
J.K.Sharma24-Jun-09 21:41
J.K.Sharma24-Jun-09 21:41 
GeneralRe: crystal report problem Pin
J.K.Sharma24-Jun-09 21:48
J.K.Sharma24-Jun-09 21:48 
GeneralRe: crystal report problem Pin
Sk9324-Jun-09 21:53
Sk9324-Jun-09 21:53 
GeneralRe: crystal report problem Pin
J.K.Sharma24-Jun-09 22:08
J.K.Sharma24-Jun-09 22:08 
AnswerRe: crystal report problem Pin
Sk9324-Jun-09 22:36
Sk9324-Jun-09 22:36 
AnswerRe: update query in windows application with ms access as database Pin
Christian Graus23-Jun-09 23:42
protectorChristian Graus23-Jun-09 23:42 
JokeRe: update query in windows application with ms access as database Pin
Sk9323-Jun-09 23:46
Sk9323-Jun-09 23:46 

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.