By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

ToolStrip button BackColor does nothing?

P: n/a
I am trying to create a button on a toolstrip that is used to select a
color. After the user selects their color, a portion of the button's
image is changed to that color (similar to the highlighter button in
Microsoft Word).

How can this be done? I tried making part of the button's image
transparent and then changed the button's BackColor to the selected
color. It appears that BackColor does not affect anything. That seems
to be true even if you change the BackColor at design time.

Any ideas?

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If you want to achieve this kind of button behaviour I'd suggest you compose
the toolbar image in-memory and asign the result to button's image.
If you want to change the button's BackColor, change ToolStrip's RenderMode
property to 'System'. This way you'll override the default 'Professional'
renderer and will have to assign all custom toolstrip's colors yourself. You
could also write your own toolstrip renderer.

Andrej

<ML****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I am trying to create a button on a toolstrip that is used to select a
color. After the user selects their color, a portion of the button's
image is changed to that color (similar to the highlighter button in
Microsoft Word).

How can this be done? I tried making part of the button's image
transparent and then changed the button's BackColor to the selected
color. It appears that BackColor does not affect anything. That seems
to be true even if you change the BackColor at design time.

Any ideas?

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.