Results 1 to 3 of 3

Thread: Defautl button BackColor

Hybrid View

  1. #1

    Thread Starter
    PowerPoster kaliman79912's Avatar
    Join Date
    Jan 2009
    Location
    Ciudad Juarez, Chihuahua. Mexico
    Posts
    2,593

    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

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Defautl button BackColor

    Quote Originally Posted by kaliman79912 View Post
    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

  3. #3

    Thread Starter
    PowerPoster kaliman79912's Avatar
    Join Date
    Jan 2009
    Location
    Ciudad Juarez, Chihuahua. Mexico
    Posts
    2,593

    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
  •  



Click Here to Expand Forum to Full Width