문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top