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

Re: 3-D FlatStyle is too flat! by Morten

Morten
Wed Sep 29 06:57:01 CDT 2004

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.

--
Happy coding!
Morten Wennevik [C# MVP]

Re: 3-D FlatStyle is too flat! by Jeff

Jeff
Wed Sep 29 09:19:42 CDT 2004

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



Re: 3-D FlatStyle is too flat! by Sijin

Sijin
Wed Sep 29 11:58:14 CDT 2004

You can look at themed buttons from the genghis project
http://www.sellsbrothers.com/tools/genghis

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph


Jeff wrote:
> 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
>
>

Re: 3-D FlatStyle is too flat! by Jeff

Jeff
Thu Sep 30 10:02:58 CDT 2004

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







Re: 3-D FlatStyle is too flat! by v-jetan

v-jetan
Thu Sep 30 21:39:43 CDT 2004

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.


Re: 3-D FlatStyle is too flat! by Jeff

Jeff
Fri Oct 01 05:53:12 CDT 2004

Hi Jeffrey,

Thanks for your help.

GDI+ here I come...

Cheers, Jeff



Re: 3-D FlatStyle is too flat! by v-jetan

v-jetan
Sun Oct 03 22:33:04 CDT 2004

Good Luck! :-)

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.