Set Text, TextAlign and Font name for a asp:CheckBox (VB.net)
<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>CheckBox Controls Sample Page</TITLE>
</HEAD>
<BODY>
<form runat="server">
<Font Face="Tahoma" Size="+1">
<BR><BR>
<asp:CheckBox
id="chk1"
Text="Do you like the color blue?"
TextAlign="Left"
Font-Size="12pt"
Font-Name="Comic Sans MS"
runat="server"
/>
<BR><BR>
<asp:CheckBox
id="chk2"
Checked="True"
Text="Do you like the color red?"
TextAlign="Right"
Font-Size="12pt"
Font-Name="Comic Sans MS"
runat="server"
/>
</Font>
</Form>
</BODY>
</HTML>
Related examples in the same category