Click here to Skip to main content
15,905,963 members
Home / Discussions / C#
   

C#

 
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 
How does Microsoft calculate the left alignment of text on a button?

Test button settings:
- All Margins set to 0.
- All Padding set to 0.
- TextAlign = MiddleLeft.
- Button style is Flat.
- Setting flat border width to 0 or 1 has no effect on position of text.

For pattern illustration:
- U = Unknown Pixel (we are not drawing these)
- T = Text pixel

My drawing:
1. Draw text at x = 0.
2. Draws text 5 pixels from left edge - I can live with that.
Pattern: UUUUT

Not important: Why is DrawString(...) drawing the text at x=4 instead of x=0?

Microsoft drawing:
1. Draws text 11 pixels from left edge.
Pattern: UUUUUUUUUUT

Important: Where are the extra 6 pixels coming from?

I have tried to account for the extra padding by examining the systems information settings. Unfortunately none of those settings explain where the padding is coming from (BorderSize=1, Border3DSize=2).

Thanks for any explanation,
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone

AnswerRe: Magic Button Text Padding Pin
BillWoodruff15-Jan-12 16:07
professionalBillWoodruff15-Jan-12 16:07 
QuestionSuggestion to do a multilanguage project Pin
Arunkumar.Koloth15-Jan-12 1:21
Arunkumar.Koloth15-Jan-12 1:21 
AnswerRe: Suggestion to do a multilanguage project Pin
venomation15-Jan-12 1:42
venomation15-Jan-12 1:42 

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.