Re: toolstrip radio style buttons

Robert Lee <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.