Click to See Complete Forum and Search --> : Changing Button look
Steeminpoo
November 21st, 2004, 04:01 PM
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?
atkin
November 22nd, 2004, 12:09 AM
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.
Steeminpoo
November 22nd, 2004, 12:34 AM
thank you
Norfy
November 22nd, 2004, 04:53 AM
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.
Steeminpoo
November 22nd, 2004, 11:35 AM
good point! Thank you
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.