'Specified cast is not valid' when adding a dropdown item...

  •  08-09-2005, 10:40 AM

    'Specified cast is not valid' when adding a dropdown item...

    When I run this code:
          Dim dropdown As CuteEditor.RichDropDownList
          dropdown = DirectCast(objEditor.ToolControls("Links").Control, CuteEditor.RichDropDownList)

    I get this error:
          System.InvalidCastException: Specified cast is not valid

    Has anyone else had this problem? - The code is taken directly from the documentation.

    [Using CuteEditor v4.5; and "links" does exist in the collection]
View Complete Thread