Is there a way to change the appearance of disabled controls? Specifically the DateTimePicker, ComboBox and RadioButton controls? The following code works nicely with text boxes:
But when used with other controls, they're still grayed out:Code:CType(ctrl, TextBox).ForeColor = Color.Black CType(ctrl, TextBox).BackColor = Color.White CType(ctrl, TextBox).ReadOnly = True
I can of course use readonly textboxes for the DateTimePicker and ComboBox output data, but I'd rather not to use textboxes or labels for radiobuttons. Any suggestions?




Reply With Quote