[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Windows7 focus affect

(Remark: I would like answers from experienced expertise not instant google links. thanks)
My app. is winform framework 3.5.
Windows 7 produce glow effect when a button is focused.
How can I disable this effect  by code ?
I would like the button property to remain flatStyle=system for other effects.
0
yaron89
Asked:
yaron89
1 Solution
 
saraganiCommented:
Hi, this is how buttons looks like in Windows 7.
If you take the same application on Windows XP you get one type of button, on Vista, the button has a gradient like in Vista style and on Win 7 it looks like Win 7.

It's because it uses Windows to draw the button.


There is nothing you can do on WinForms to solve this problem.
There are 3rd party companies like Telerik, Infragistics etc, that offert their own buttons that you can set the style to.
It is easy for them to do it since they control the drawing of their own user controls.


If you would like to define your own style for buttons then use WPF, not WinForms.
0
 
yaron89Author Commented:
Thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now