CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2004
    Posts
    8

    Changing Button look

    I am wanting to change the look of the standard button in C# and im thinking all I need to do is locate the file that the Button immage is located and just change that, but im not sure...Anyone know a better way or if that will work or not?

  2. #2
    Join Date
    Oct 2004
    Location
    South Africa
    Posts
    86

    Re: Changing Button look

    yes that is surely the way to change the look of a buttton. Just remember to set Flatstyle Flat for the properties. that should work.

  3. #3
    Join Date
    Nov 2004
    Posts
    8

    Re: Changing Button look

    thank you

  4. #4
    Join Date
    Dec 2003
    Location
    http://map.search.ch/zuerich.en.html
    Posts
    1,074

    Re: Changing Button look

    If you simply want to change the Image that appears on a button then Atkin is correct.

    If you want to change the look and feel of the button itself then you have to look at overriding the OnPaint method in a subclass of Button (or ButtonBase).

    Even with FlatStyle.Flat, .NET will draw a border around the button.
    Useful? Then click on (Rate This Post) at the top of this post.

  5. #5
    Join Date
    Nov 2004
    Posts
    8

    Re: Changing Button look

    good point! Thank you

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

Featured