Setting BackColor of ToolStrip

I have a ToolStrip in a VB2005 WinForm app. When I place it on the Form, it has the nice blue gradient color with a 3D effect. If I look at the BackColor property at this point in time it is set to "Control". I then programmatically set its BackColor to Red. The ToolStrip correctly turns Red. I then programmatically set its BackColor back to 'Control". Instead of it going back to the blue gradient 3D look, it turns Gray and looks flat (does not have the 3D look), How can I get it to revert back to its original color and 3D look?
SETPAsked:
Who is Participating?
 
VelioConnect With a Mentor Commented:
try setting it to Color.Empty instead of SystemColors.Control
0
 
REA_ANDREWCommented:
What is the render mode set at for the toolstrip menu?

Andrew
0
 
SolutionsCSCommented:
Hi, just change the rendermode to system and then choose your backcolor.  That's all.  Good luck
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
SETPAuthor Commented:
REA_ANDREW: The render mode is at its default: ManagerRenderMode. Just in case, I've tried setting the RenderMode back to ManagerRenderMode after changing the color in case the RenderMode was changing by itself, but this didnt help. I tried all possible RenderModes.

VELIO: I tried setting the color to Color.Empty but it made no difference.

You can try this by simply dropping a ToolStrip on a WinForm, and in your code changing the BackColor to Red. Then try to get it back to normal - not simple.
0
 
SETPAuthor Commented:
Oops, made a big mistake!!! Sorry Velio, your solution actually worked! Thanks
0
 
VelioCommented:
cool, glad i could help :)
0
All Courses

From novice to tech pro — start learning today.