Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Limit number of characters user can enter - Console Application Pin
Wayne Gaylard16-Jan-12 18:46
professionalWayne Gaylard16-Jan-12 18:46 
GeneralRe: C# Limit number of characters user can enter - Console Application Pin
Deborah Palmer McCain16-Jan-12 19:04
Deborah Palmer McCain16-Jan-12 19:04 
GeneralRe: C# Limit number of characters user can enter - Console Application Pin
Wayne Gaylard16-Jan-12 19:14
professionalWayne Gaylard16-Jan-12 19:14 
AnswerRe: C# Limit number of characters user can enter - Console Application Pin
BobJanova16-Jan-12 22:39
BobJanova16-Jan-12 22:39 
GeneralRe: C# Limit number of characters user can enter - Console Application Pin
Deborah Palmer McCain17-Jan-12 4:53
Deborah Palmer McCain17-Jan-12 4:53 
Questionhow to paint lines on combo-box in difference colors ? Pin
goldsoft16-Jan-12 0:25
goldsoft16-Jan-12 0:25 
AnswerRe: how to paint lines on combo-box in difference colors ? Pin
Pete O'Hanlon16-Jan-12 0:29
mvePete O'Hanlon16-Jan-12 0:29 
GeneralRe: how to paint lines on combo-box in difference colors ? Pin
goldsoft16-Jan-12 0:38
goldsoft16-Jan-12 0:38 
AnswerRe: how to paint lines on combo-box in difference colors ? Pin
Luc Pattyn16-Jan-12 0:47
sitebuilderLuc Pattyn16-Jan-12 0:47 
GeneralRe: how to paint lines on combo-box in difference colors ? Pin
BobJanova16-Jan-12 3:43
BobJanova16-Jan-12 3:43 
Questionhelp Pin
rudra12415-Jan-12 21:03
rudra12415-Jan-12 21:03 
AnswerRe: help Pin
Mycroft Holmes15-Jan-12 21:08
professionalMycroft Holmes15-Jan-12 21:08 
AnswerRe: help Pin
OriginalGriff15-Jan-12 21:26
mveOriginalGriff15-Jan-12 21:26 
GeneralRe: help Pin
Luc Pattyn15-Jan-12 21:38
sitebuilderLuc Pattyn15-Jan-12 21:38 
AnswerRe: help Pin
thatraja16-Jan-12 2:13
professionalthatraja16-Jan-12 2:13 
QuestionWindows service Windows XP and Windows 7 Pin
Mc_Topaz15-Jan-12 20:58
Mc_Topaz15-Jan-12 20:58 
AnswerRe: Windows service Windows XP and Windows 7 Pin
Luc Pattyn15-Jan-12 21:42
sitebuilderLuc Pattyn15-Jan-12 21:42 
AnswerRe: Windows service Windows XP and Windows 7 Pin
Mc_Topaz15-Jan-12 22:22
Mc_Topaz15-Jan-12 22:22 
GeneralRe: Windows service Windows XP and Windows 7 Pin
BobJanova16-Jan-12 3:48
BobJanova16-Jan-12 3:48 
GeneralRe: Windows service Windows XP and Windows 7 Pin
Dave Kreskowiak16-Jan-12 4:27
mveDave Kreskowiak16-Jan-12 4:27 
AnswerRe: Windows service Windows XP and Windows 7 Pin
Mc_Topaz16-Jan-12 5:29
Mc_Topaz16-Jan-12 5:29 
GeneralRe: Windows service Windows XP and Windows 7 Pin
Dave Kreskowiak16-Jan-12 6:40
mveDave Kreskowiak16-Jan-12 6:40 
QuestionMSIL obfuscator with .pdb symbol and source line number fixup Pin
Ravi Bhavnani15-Jan-12 16:26
professionalRavi Bhavnani15-Jan-12 16:26 
QuestionMagic Button Text Padding Pin
John R. Shaw15-Jan-12 8:30
John R. Shaw15-Jan-12 8:30 
AnswerRe: Magic Button Text Padding Pin
BillWoodruff15-Jan-12 16:07
professionalBillWoodruff15-Jan-12 16:07 
One logical, if unlikely, hypothesis might be that the position of the first character is calculated based on the underlying bounding box of the character which may include a built-in left-margin factor.

To exclude this hypothesis, which I'd guess you may have already done, I'd vary the first character from lower to upper case, and compare a "naturally wide" "W" with a "naturally narrow "I." If they are both drawn at identical distances from the left edge of the Button at the Alignment settings you describe: that's one less hypothesis Smile | :)

A more probable hypothesis (?): the fact you are using the Paint Event and DrawString means you are relying on an internal drawing area that is offset from the absolute pixel edges of the Button: since I never use Paint and DrawString, I don't know how you could test this hypothesis, but I am sure someone else reading this post will.

best, Bill
"It is the mark of an educated mind to be able to entertain a thought without accepting it." Aristotle


modified 16-Jan-12 5:43am.

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.