Re: code to drop an image from images dropdown

  •  04-13-2010, 5:36 PM

    Re: code to drop an image from images dropdown

    I am trying to use the code to do it programtically but no matter what I do it still leaves your default logo and flower image in there.
     
    I assume programtically setting this I do not need to edit the Common.config file or do i need to do both
     
    here is my code
     
     
    Dim dropdown As CuteEditor.RichDropDownList
                Dim richitem As CuteEditor.RichListItem
                dropdown = DirectCast(cutefile.ToolControls("Images").Control, CuteEditor.RichDropDownList)
                richitem = dropdown.Items(0)
                dropdown.Items.Clear()
                dropdown.Items.Add(richitem)
                dropdown.Items.Add("Welcome", "<img src=" & Chr(34) & "images/Title-Welcome.gif" & Chr(34) & " alt=" & Chr(34) & "" & Chr(34) & " />")
     
    I also tried replaceing the chr(34) in the alst line with a single apostrophe - you can not put a double quote in there in vb it will cause a non valid string compiler error - you may want to alter that in the help file you referenced above.
     
    Please advise
     
     
     
     
View Complete Thread