Re: toolstrip radio style buttons
Peter Osucha <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
A solution example... http://blogs.msdn.com/winformsue/archive/2006/04/24/ToolStripRadioButton MenuItem.aspx (Wow, that's a lot of code) -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Robert Lee Sent: Tuesday, May 22, 2007 5:31 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] toolstrip radio style buttons My bad, It looks like you can do something with the CheckOnClick value for the toolstrip button, it turns the button into a stay down, and then you'll have to add to the _Click events for each of the other buttons to set all the others to Checked = false. (basically what an opt does under the hood). Not as clean as a true option, but as long as you're not putting a couple hundred of them on the toolstrip it should work ;) Rob -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Tuesday, May 22, 2007 4:32 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] toolstrip radio style buttons Robert, I should have been clearer... It doesn't seem that there is a way to set the button style for buttons added to toolstrips as 'radio button'. Am I missing something? Peter -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Tuesday, May 22, 2007 4:26 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] toolstrip radio style buttons Robert, That's exactly what I want to do! However, I can't set a button to a 'radio button' style. ;-) Peter -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Robert Lee Sent: Tuesday, May 22, 2007 4:23 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] toolstrip radio style buttons Peter, Use the Radio Button, and set its appearance to button. HTH Rob -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Tuesday, May 22, 2007 4:18 PM To: [email protected] Subject: [DOTNET-WINFORMS] toolstrip radio style buttons VS2005 I am using a toolstrip control inside a form panel. I have added some buttons that I want to behave like 'radio' buttons (only one can be selected at a time). It seems the functionality I want could be achieved with a drop down box - however, I want to use buttons. How is this done, please? Peter