Windows7 focus affect

Posted on 2011-05-02
Last Modified: 2012-06-27
(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.
Question by:yaron89
    LVL 11

    Accepted Solution

    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.

    Author Closing Comment

    Thank you

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now