3-D FlatStyle is too flat!

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Hi,

A System.Windows.Forms.Button with FlatStyle set to 3-D (Standard) is not
3-D enough for my application. Its hard to tell when the button is up or
down.
Users of my application need a strong visual feedback.

Does anyone know if its possible to increase a Button's border
width/thickness
without overriding the Paint event and drawing the button manually?

Thanks, Jeff
 
Hi Jeff,

If you plan to run your application on Windows XP or later (Windos 2003 requires XP style theme installed) you can use FlatStyle.System and put

Application.EnableVisualStyles();

before Application.Run();

The buttons won't have any larger borders, but the color changes slightly when the button is pressed.
 
Hi Morten,

When I try your tip, I am unable to see any difference.
This may be due to the fact my button background color is blue.

Thanks for giving me something to try.

Regards, Jeff
 
Hi Jeffrey,

Yes, I do see the difference between the pressed and upressed state.
However, its not enough for my customers.

I guess I'm going to have to go with Ower-drawn, GDI+ etc.

Thanks for helping me out.

Regards, Jeff
 
Hi Jeff,

Oh, I see your concern, if you feel the difference is not enough, you have
to draw it with GDI+ yourself. Anyway, if you need further help, please
feel free to feedback.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top