Does anyone know how to change the backcolor of a toolbar component. The BackColor property doesn't seem to be available for this control and i would like to avoid making a custom control or overriding the paint event if i can.
Does anyone know how to change the backcolor of a toolbar component. The BackColor property doesn't seem to be available for this control and i would like to avoid making a custom control or overriding the paint event if i can.
changing toolBar backcolor
PBG157
Thanks for the ideas but instead of taking the shortcut it looks like i will just build my own. I was hoping there was a nice easy workaround but after some research it doesn't look like thats the case. I'm sure that there will be a need for this again inside my company so all is not lost. Thanks again.
Adam
LanceM
I don't know of an easy way to change the backcolor, it always inherits from it's parent form. Here's one kludgy idea ... put your toolbar on a stripped down form with the background color you'd like for your toolbar ... then add the form to a panel on your main form. Shrink everything down so it looks like a regular toolbar. Since a toolbar inherits the parent form's backcolor, this might just work. I didn't try it though, so I'd be curious your results if you do attempt
Alternately, you could use a different toolbar (this is one of many available on the net):
http://www.codeproject.com/cs/miscctrl/MozBar.asp. Many of these are more customizable than the standard toolbar ...
Hope this helps,
Josh Lindenmuth