Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Forms and Aero don't mix well -- how do I make them look native?

It's rather annoying: Windows Forms controls don't look or feel native; they don't glow/fade like they're supposed to.

For example, the top button is not native, but the bottom one is:

So how do I get this native look/feel in .NET? Is there a way to do it without using an external library?

like image 396
user541686 Avatar asked Jun 14 '12 16:06

user541686


1 Answers

Yes! Just set the FlatStyle property on your control to System, instead of Standard, which is the default.
It's not easy to notice, but it's that easy to fix!

Just be aware that this can subtly affect the control in some situations -- a simple search on FlatStyle.System should point you to the caveats.

like image 69
user541686 Avatar answered Sep 21 '22 20:09

user541686