P
Patti
I am building an application using VB.NET 1.1 and I have an issue with
Font properties in my Radio Button Lists and Check Box Lists. My issue
is that the Font Names and Font Size for these controls have become
"Read Only" and I have no idea how they became read only. I didn't set
anything to read only and was able to change these fonts just last week
- so I must have messed something up. Below is a snippet of my HTML
code I used to assign the font properties and also my attempt in VB.NET
code:
HTML:
<asp:radiobuttonlist id="rblAuditType" Width="100%" Runat="server"
AutoPostBack="False" Font-Size="XX-Small"
Font-Name="Tahoma"
RepeatDirection="horizontal" RepeatColumns="3"
Font-Names="Arial"></asp:radiobuttonlist>
<!--No matter what I change the Font-Size or Font-Name too, it always
displays as Arial, X-Small-->
VB.NET
Me.rblAuditType.Font = New System.Drawing.Font("Tahoma", 8.0F,
System.Drawing.FontStyle.Bold)
'When I try the above code I recieve a compiler error message that says
Property 'Font' is 'ReadOnly'
Any suggestions would be much appreciated!
Font properties in my Radio Button Lists and Check Box Lists. My issue
is that the Font Names and Font Size for these controls have become
"Read Only" and I have no idea how they became read only. I didn't set
anything to read only and was able to change these fonts just last week
- so I must have messed something up. Below is a snippet of my HTML
code I used to assign the font properties and also my attempt in VB.NET
code:
HTML:
<asp:radiobuttonlist id="rblAuditType" Width="100%" Runat="server"
AutoPostBack="False" Font-Size="XX-Small"
Font-Name="Tahoma"
RepeatDirection="horizontal" RepeatColumns="3"
Font-Names="Arial"></asp:radiobuttonlist>
<!--No matter what I change the Font-Size or Font-Name too, it always
displays as Arial, X-Small-->
VB.NET
Me.rblAuditType.Font = New System.Drawing.Font("Tahoma", 8.0F,
System.Drawing.FontStyle.Bold)
'When I try the above code I recieve a compiler error message that says
Property 'Font' is 'ReadOnly'
Any suggestions would be much appreciated!