Treeview with custom icon (VB.net)
<%@ Page Language=VB Debug=true %> <%@ Import Namespace="Microsoft.Web.UI.WebControls" %> <%@ Register TagPrefix="IEControls" Namespace="Microsoft.Web.UI.WebControls" Assembly ="Microsoft.Web.UI.WebControls" %> <HTML> <HEAD> <TITLE>TreeView 2 Control Sample Page</TITLE> </HEAD> <BODY > <form runat="server"> <Font Face="Tahoma"> <IEControls:treeview id="MyTree2" AutoSelect="True" ExpandLevel=0 ImageURL="3.ico" ExpandedImageURL="Smile.ico" SelectedImageURL="4.ico" ShowLines="False" Indent="40" runat="server"> <IEControls:treenode Text="A"> <IEControls:treenode Text="A1"/> <IEControls:treenode Text="A2"/> <IEControls:treenode Text="A3"> <IEControls:treenode Text="A31"/> <IEControls:treenode Text="A32"/> <IEControls:treenode Text="A33"/> </IEControls:treenode> </IEControls:treenode> <IEControls:treenode Text="B"> <IEControls:treenode Text="B1"/> <IEControls:treenode Text="B2"/> <IEControls:treenode Text="B3"/> <IEControls:treenode Text="B4"/> </IEControls:treenode> </IEControls:treeview> </Font> </Form> </BODY> </HTML>