Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

3-D FlatStyle is too flat!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff - 29 Sep 2004 12:48 GMT
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
Morten Wennevik - 29 Sep 2004 12:57 GMT
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.

Signature

Happy coding!
Morten Wennevik [C# MVP]

Jeff - 29 Sep 2004 15:19 GMT
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
Sijin Joseph - 29 Sep 2004 17:58 GMT
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

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks,  Jeff

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.