Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have 2 Buttons in Form1 and simply i run the Form.
if i mouse hover on any Button, some system Defined BorderColor is assigned..
Exa:
In my system When i run the application.. Gold Color is appearing For Button Borders.

i need to Change the Borders For Button Controls..

Do i need to Create Custom Control For Button
Or
Is there any Built in Property's are Method's available to Solve my issue?

Kindly let me know the solution..

Regards,
Pawan.
Posted
Comments
Tarun.K.S 21-Oct-10 8:33am    
does your application use WPF?
Pawan Kiran 21-Oct-10 8:57am    
No, Only C#.

Change the FlatStyle property, try it..
 
Share this answer
 
Comments
Pawan Kiran 21-Oct-10 9:04am    
I run the app by setting FlatStyle and FlatAppearence also..
it doesn't look good.

if u don't mine just create a Form with 2 Buttons, Set Form1 AcceptButton as Button1 and CancelButton as Button2.
Apply FlatStyle to Button2.

Check Button1 and Button2 MouseHover in Runtime.

Do let me know your reply.

Finally,Thanks to you for your Contribution..
Hi,

You can solve above issue by creating image for Buttons.
After creating one image,then set that image as backgroundmage for Button control.
 
Share this answer
 
Comments
Pawan Kiran 21-Oct-10 8:36am    
Hi Kiran,

I tried ur image option, but still the Gold color is appearing for Button Border. This Gold Color i haven't mentioned or coded any where.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900