Click here to Skip to main content
15,896,278 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Suggestion to do a multilanguage project Pin
Not Active15-Jan-12 7:22
mentorNot Active15-Jan-12 7:22 
AnswerRe: Suggestion to do a multilanguage project Pin
Bernhard Hiller15-Jan-12 21:31
Bernhard Hiller15-Jan-12 21:31 
GeneralRe: Suggestion to do a multilanguage project Pin
joost.versteegen16-Jan-12 4:26
joost.versteegen16-Jan-12 4:26 
AnswerRe: Suggestion to do a multilanguage project Pin
jschell16-Jan-12 8:52
jschell16-Jan-12 8:52 
QuestionProblem with Ninject Pin
venomation15-Jan-12 0:28
venomation15-Jan-12 0:28 
AnswerRe: Problem with Ninject Pin
Dave Kreskowiak15-Jan-12 3:23
mveDave Kreskowiak15-Jan-12 3:23 
QuestionRemote PC diagnostics Code Pin
Mohammed NAeem14-Jan-12 21:49
Mohammed NAeem14-Jan-12 21:49 
AnswerRe: Remote PC diagnostics Code Pin
Eddy Vluggen15-Jan-12 6:02
professionalEddy Vluggen15-Jan-12 6:02 
QuestionLooking for help deciphering this code class Pin
turbosupramk313-Jan-12 19:09
turbosupramk313-Jan-12 19:09 
AnswerRe: Looking for help deciphering this code class Pin
Richard MacCutchan13-Jan-12 22:23
mveRichard MacCutchan13-Jan-12 22:23 
GeneralRe: Looking for help deciphering this code class Pin
turbosupramk314-Jan-12 3:28
turbosupramk314-Jan-12 3:28 
GeneralRe: Looking for help deciphering this code class Pin
Richard MacCutchan14-Jan-12 3:41
mveRichard MacCutchan14-Jan-12 3:41 
GeneralRe: Looking for help deciphering this code class Pin
harold aptroot14-Jan-12 4:34
harold aptroot14-Jan-12 4:34 
AnswerRe: Looking for help deciphering this code class Pin
OriginalGriff14-Jan-12 0:23
mveOriginalGriff14-Jan-12 0:23 

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.