Jul 30, 2009, 4:52 AM
How to set Label Font size and color
Hi All,
How to set the label font size and color for label control plz help me
Thanks in advance
.fomtsizeAndColor
{
font-size:13px;
font-weight:bold ;
color:Red;
}
It can work Perfectly.
Private Sub DisableFormFields()
Me.cbSessionList.Disabled = True
'Me.cbSessionList.ReadOnly = True
'Me.cbSessionList.Editable = False
Me.cbSessionList.Style.Clear()
Me.cbSessionList.StyleSpec = "color:Black;background:#EEEEEE"
End Sub
This works to disable the field, but I cannot control the fore color of the text box, its too "faded" and hard to see... which may be the default behavior, but I want this form for read-only purposes, so I tried this:
Private Sub DisableFormFields()
'Me.cbSessionList.Disabled = True
Me.cbSessionList.ReadOnly = True
Me.cbSessionList.Editable = False
'Me.cbSessionList.Style.Clear()
Me.cbSessionList.StyleSpec = "color:Black;background:#EEEEEE"
End Sub
This produced the desired colors, but I could still click the down arrow on the ComboBox and select a new item. The .Editable = False should not allow changes to the ComboBox selection, no?