Re: populating dropdown text list problem

  •  12-04-2005, 7:13 PM

    Re: populating dropdown text list problem

    Try the code below:
     
                   If Not txtDescription.ToolControls("FontName") Is Nothing Then
                        Dim dropdown As CuteEditor.RichDropDownList
                        Dim richitem As CuteEditor.RichListItem
                        dropdown = DirectCast(txtDescription.ToolControls("FontName").Control, CuteEditor.RichDropDownList)
                        richitem = dropdown.Items(0) 'the first item is the caption  
                        dropdown.Items.Clear() 'clear the items from configuration files
                        dropdown.Items.Add(richitem) 'add the caption 
                        dropdown.Items.Add("Arial", "Arial")
                        dropdown.Items.Add("Verdana", "Verdana")                     
                        dropdown.Items.Add("Tahoma", "Tahoma") 
                        dropdown.Items.Add("<span style='font-family:Tahoma;font-size:12pt'>Tahoma</span>", "Tahoma", Tahoma") 
                    End If

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread