Visual Studio - Accept Button gets border

I have a Windows Form with a few buttons on it, which are SteelBlue and Flat style.  When I specify on the form an AcceptButton it changes the border of the 'Accept Button' to white.  I can't seem to find where to clear this out?

Can someone help me with this little irritation?
logincancel.PNG
LVL 6
Uptime Legal SystemsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Uptime Legal SystemsAuthor Commented:
For the record, I know the border is controlled by BorderColor, but I have it set to nothing.  I can change the color with this property, but I can't get rid of it?
buttonsettings.PNG
Jacques Bourgeois (James Burger)PresidentCommented:
That border has a purpose. It's an indication for the user that pressing Enter on the form will activate that button. If you remove it, you remove that indication and users might activate it by mistake.

If you do not want the border, simply do not set that Button as the AcceptButton. Trap the Enter key yourself, on the Form's KeyPress event, after having set its KeyPreview property to True.

If you need the result sent back by the standard AcceptButton, simply set the DialogResult property of the form to OK.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Uptime Legal SystemsAuthor Commented:
Thanks for the response, I'll go about it that way then.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.