I've been building some demos from an old C# book. It had a very good walk through for creating checked menu items. It also has a demo with the similar toggle button for tool bars. However, it's obvious that this changed in C# 2005, as the property is no longer available. I can find nothing relevant in the tool bar control at all. I did find similar properties in the tool bar button to the checked menu item, and tried manipulating those. By setting the tool bar button property Checked to true it comes up toggled on. However, you can't turn it off in code like a checked menu item, e.g. tbbToggle.Checked = (!tbbToggle.Checked);
I found a property that allows me to control the behavior of the button like I want... so that's OK so far as it goes. But it won't execute my code? Is there a different way to do this? The button is toggling a "quit verification" message box and whether it appears when you try to quit (just like the checked menu item that works fine). And I haven't been able to get MSDN to give me anything useful on this so far. What am I doing improperly?
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of
www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.