Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabled Radio Buttons Colr

Status
Not open for further replies.

Goodall

MIS
Aug 4, 2004
18
US
When I set the .enabled property of a radio button to false the forecolor turns to this annoying turquoise looking color by default. How can I get the color to remain black?
 
I can't reproduce this. Does this happen on all machines?
 
I am using Visual Basic .NET 2003 Standard with Windows 2000 professional. This is the only machine I've tested it on so far. When a textbox is disabled the backcolor is changed making it less readable. Fortunately the RichTextBox can be used insted and I simply set the ReadOnly property to true. However as far as I know there isn't an equivilent substitute for a RadioButton. I simply want it to be uneditable is certain situations. That is why I started to monkey around with the .enabled property.
 
The autoclick property set to false will not allow the user to select the Radio Button but it will appear to be enabled. Is that what you are looking for?
 
The autoclick property pretty much did the trick. When clicked, the radio button "dot" doesn't get set but the control does appear to be selected with the dotted box around the text. That's potentially misleading to the user, but I am willing to allow it as opposed to completely disabling the control. Thanks for your research time Juice05.
 
Not a problem.

When setting enabled to false on your controls, I have found that, depending on which desktop theme is used, the text for the controls is hard to read.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top