Home All Groups Group Topic Archive Search About
Author
29 Jun 2006 1:46 PM
Ryan
I want to create a button on a Windows form that stays depressed when a user
clicks it (and raises if they click it again).  How do I do this?

Thanks,
Ryan

Author
29 Jun 2006 2:23 PM
Herfried K. Wagner [MVP]
"Ryan" <Tyveil@newsgroups.nospam> schrieb:
>I want to create a button on a Windows form that stays depressed when a
>user clicks it (and raises if they click it again).  How do I do this?

You may want to use a checkbox control with 'Appearance' set to 'Button'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
29 Jun 2006 3:05 PM
Brian Tkatch
Ryan wrote:
> I want to create a button on a Windows form that stays depressed when a user
> clicks it (and raises if they click it again).  How do I do this?
>
> Thanks,
> Ryan

Use a RadioButton. And change Appearence to button.

Though, if you really want it to stay depressed, just hurl a few
insults. That usuaully does the trick. :)

B.
Author
29 Jun 2006 3:13 PM
Ryan
LOL.. thanks :)

Show quoteHide quote
"Brian Tkatch" <Maxwell_Sm***@ThePentagon.com> wrote in message
news:1151593544.704741.243110@75g2000cwc.googlegroups.com...
> Ryan wrote:
>> I want to create a button on a Windows form that stays depressed when a
>> user
>> clicks it (and raises if they click it again).  How do I do this?
>>
>> Thanks,
>> Ryan
>
> Use a RadioButton. And change Appearence to button.
>
> Though, if you really want it to stay depressed, just hurl a few
> insults. That usuaully does the trick. :)
>
> B.
>