Thanks Jouko Kynsijärvi for this nice bug report! We love the descriptive title, detailed description, precise repro steps, and the screenshot complete with indicative guide lines.

 

MSDN Product Feedback Center link : http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=d268e826-33e8-4c29-a3f2-fd5ccbc7da38

 

Button renders text & focus rectangle inconsistently compared to native Win32 button

 

=== Opened by Jouko Kynsijärvi on Jul  2 2004  4:48PM ===

When pushed down WinForms Button control renders text one pixel more to the right/down. This is inconsistent with the native Win32 button control. Also WinForms button has two pixels between it's focus rectangle and button border (Win32 button has only one pixel of space).

 

Steps to Reproduce :

Create a new C# Windows Application. Add a Button control to the default form. Compare the buttons in normal and pushed down state to native Win32 buttons (for example buttons in Explorer's file property sheet).

 

Actual Results :

When button is pushed down text is rendered one pixel more to the right/down compared to normal state. Focus rectangle has two pixels between it and button border. See the attached picture (upper ones are native Win32 buttons, lower ones are WinForms buttons, red lines added to illustrate differences).

 

Expected Results :

Identical results to a Win32 button: Text not moved when button is pushed down. Focus rectangle has one pixel between it and button border.

===

 

Thanks,

 

Marie Hagman

Visual Studio Core