Hai i am passing checked index of ultraoptionset from Parent Form. So In Child Form UnltraOption set to be Read only. How to do this????????????????????
Hi,
I have to two option buttons in a group box. After checking one of those values, I do not want the user to change it.SO, I want to disable it but with feel of normal appearance like 'read only' mode.
I tried the following, but, I am losing the checked state and its totally looking like disabled. Please help me here ASAP.
CtlRankingSessions1.uosAssignSchedule.CheckedIndex = 1
Dim bkClr, foreClr As System.Drawing.Color
bkClr = CtlRankingSessions1.uosAssignSchedule.ItemAppearance.BackColorDisabled
foreClr = CtlRankingSessions1.uosAssignSchedule.ItemAppearance.ForeColorDisabled
CtlRankingSessions1.uosAssignSchedule.Enabled = False
CtlRankingSessions1.uosAssignSchedule.ItemAppearance.BackColorDisabled = bkClr CtlRankingSessions1.uosAssignSchedule.ItemAppearance.ForeColorDisabled = foreClr
Thanks in advance!
Thank you Mike,.. It Works Good.
Thank u very Much.
Thank You Georgi..
Very Helpful..
Thank you Very Much.
To change the appearance of the items when the control is disabled. you can use the ItemAppearance.BackColorDisabled and ForeColorDisabled. Just set these properties to the same colors the control is using when it's enabled.
Hi again,
The control does not have property "ReadOnly", but I suggest you to use property "Enable= false" and also to change the control appearance to be more visible for the users.
Regards
Georgi