Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 18th, 2007, 11:38 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default Toolbar toggle buttons in C# 2005

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.
__________________
-------------------------

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
icons don't show on toolbar buttons MAKO C# 0 June 16th, 2006 11:37 AM
Toggle CheckBox g_vamsi_krish ASP.NET 1.0 and 1.1 Basics 1 February 13th, 2006 03:00 AM
Creating an IE Toolbar/Band In Visual Basic 2005 Michael Eaton VB How-To 0 November 21st, 2005 05:46 PM
Toggle Buttons ctekk2005 Access 3 June 15th, 2005 03:36 AM
Buttons of different sizes needed in the toolbar Jell General .NET 8 May 3rd, 2005 08:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.