-
Feb 17th, 2012, 11:40 AM
#1
Defautl button BackColor
When I change the BackColor for a Form, and then add new buttons, they have by default the same BackColor as the Form itself. That does not show on my Windows 7 development computer, but when I use the program on an XP machine, all buttons appear the same color as the form.
I correct this by changing the button's BackColor property to ButtonFace, but it is a pain to do it all the time and some times it gets past me and a wrong color button goes into the application.
Is there a way to change how this works so all buttons are placed with ButtonFace BackColor by default?
More important than the will to succeed, is the will to prepare for success.
Please rate the posts, your comments are the fuel to keep helping people
-
Feb 17th, 2012, 12:02 PM
#2
Re: Defautl button BackColor
Originally Posted by kaliman79912
Is there a way to change how this works so all buttons are placed with ButtonFace BackColor by default?
either create a new user control inherited from button control and set button's backcolor property as desired or in form load event loop through all the control of type button and set appropriate value of their backcolor property
__________________
Rate the posts that helped you
-
Feb 17th, 2012, 02:41 PM
#3
Re: Defautl button BackColor
That may work, but it still a patch. No way to change the default?
More important than the will to succeed, is the will to prepare for success.
Please rate the posts, your comments are the fuel to keep helping people
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|