all groups > dotnet windows forms > march 2008 >
You're in the

dotnet windows forms

group:

Equivalent of Delphi SpeedButton


Re: Equivalent of Delphi SpeedButton Jeff Gaines
3/25/2008 9:26:58 AM
dotnet windows forms:
On 25/03/2008 in message <uC4MPUojIHA.1188@TK2MSFTNGP04.phx.gbl> Steve
[quoted text, click to view]

Use Radio Buttons and set the Appearance property to Button. You will need
to group them in a panel or Group Box.

--
Equivalent of Delphi SpeedButton Steve Thackery
3/25/2008 2:32:03 PM
I'm a complete newbie to C# and .Net programming, and am just learning the
environment by rewriting one of my existing Delphi apps from the ground up
in C# 2008 Express.

I've got a row of buttons which I want to work like radio buttons - that is,
one of the buttons in the row is "down", and clicking on another button
makes that one "down" and the previous one "up".

Obviously I could use radio buttons for this, but they look so ugly in
modern applications. Delphi offers a TSpeedButton, which has a property
called "GroupIndex". By setting several buttons to the same GroupIndex they
work just like radio buttons, but with the more pleasing appearance of a
normal button.

It must be possible to do this in Visual Studio - I'm sure I must be missing
something really obvious. If anyone could help I'd really appreciate it.

SteveT
Re: Equivalent of Delphi SpeedButton Steve Thackery
3/26/2008 12:46:53 AM
[quoted text, click to view]

Ah, perfect! Thank you very much, Jeff.

SteveT
AddThis Social Bookmark Button