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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBoxes 1

Status
Not open for further replies.

teubenragee

Programmer
May 22, 2001
27
0
0
DE
Is there a way to disable a checkbox and to display Checkbox caption in black instead of a "3D gray"?

Thank you
 
well an unorthodox way of going about this would be as follows:

i assume your check box name to be CheckBox1.

whenever you dont want the user to be able to check the checkbox, you could stick that into a timer and enable the timer every time you wanted your checkbox Enabled. thats about all i can think of off the top of my head to carry out what you wanted.


CheckBox1->State = cbGrayed;
if (CheckBox1->Checked == true)
CheckBox1->Checked = false;
Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top