APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

ComboBox
Version 1.5



What's New
Overview
Features
Reference Book
Licensing
Support



Design
Layout and Behavior
Programming




Customizing the look-and-feel of your ComboBox is accomplished through the following steps:
  1. Create the XML ComboBox Structure.

    At this step you define the XML Structure with ComboBox items.

  2. Creating the style of ComboBox.

    Each style consist of a few files:

    • CSS File

      The appearance of the ComboBox is controlled through a style sheet CSS File. You bind the ComboBox by specifying the CSSFileURL property of the APNSoftComboBox control to the URL of the CSS File.

      CSS File consists of a few classes. It is enough to take the ready-to-use ComboBox style from the example, modify it and use for free.

      Also, see detailed information in the Component Parts section.

    • Custom Images

      You can use your custom images for all arrows, rulers, slider backgrounds, etc. Please, see detailed information in the Component Parts section.


  3. Setting the Properties.

    Properties can be set in three ways:

    • In the properties panel in IDE (Visual Studio .NET)



      Also, see the screenshot with all properties in the Deployment section.

    • ASPX

      <cb:APNSoftComboBox
      	id=c1
      	runat="server"
      	StructureFileURL="./Structure.xml"
      	TransitionEffect="Fade"
      	ImagesFolderURL="./Images/"
      	AutoPostBack="True"
      	AutoScrollList="True"
      	OpenListEvent="OnMouseOver">
      </cb:APNSoftComboBox>
      


    • Code Behind

      using APNSoft.WebControls;
      
      //Create component instance
      APNSoftComboBox myComboBox = new APNSoftComboBox();
      
      //Set component properties
      myComboBox.ID = "c1";
      myComboBox.StructureFileURL = "./Structure.xml";
      myComboBox.TransitionEffect =
        APNSoftComboBox.TransitionEffectValues.Fade;
      myComboBox.ImagesFolderURL = "./Images/";
      myComboBox.AutoPostBack = true;
      myComboBox.AutoScrollList = true;
      myComboBox.OpenListEvent =
        APNSoftComboBox.OpenListEventValues.OnMouseOver;
      


      Also, see how to use component in Code Behind in the Deployment section.





  © 2003-2008 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center