Stylin' FreeTextBox Demo

This demo illustrates the different FreeTextBox themes: Office 2000, Office XP, and Office 2003.


Choose a Theme:


Source Code

<%@ Page ValidateRequest="False" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

<script language="VB" runat="server">
  Sub switchTheme(sender as Object, e as EventArgs)
     Select Case ddlTheme.SelectedItem.Value
       Case "Office2000"
         FreeTextBox1.ToolbarStyleConfiguration = ToolbarStyleConfiguration.Office2000
       Case "OfficeXP"
         FreeTextBox1.ToolbarStyleConfiguration = ToolbarStyleConfiguration.OfficeXP
       Case "Office2003"
         FreeTextBox1.ToolbarStyleConfiguration = ToolbarStyleConfiguration.Office2003
     End Select
  End Sub
</script>

<form runat="server">
   <asp:DropDownList id="ddlTheme" runat="server" AutoPostBack="True" OnSelectedIndexChanged="switchTheme">
     <asp:ListItem Value="Office2000">Office 2000</asp:ListItem>
     <asp:ListItem Value="OfficeXP">Office XP</asp:ListItem>
     <asp:ListItem Value="Office2003">Office 2003</asp:ListItem>
   </asp:DropDownList>
   <br />
   <FTB:FreeTextBox id="FreeTextBox1" runat="server" ToolbarStyleConfiguration="Office2000" />
</form>

[Return to the article...]