Hello
In a SmartTag, I would like toselect a string from a list of strings. Therefore, I would define its in a ComboBox, in which I see the list of possible strings fill.
I have tried with the follow code:
Code Block
....
public string[] ListOfNames
{
get { return myComponent.ListOfNames; }
set
{
GetPropertyByName("ListOfNames").SetValue(msgBoxComponent, value);
this.designerActionUISvc.Refresh(this.Component);
}
}
public override DesignerActionItemCollection GetSortedActionItems()
{
DesignerActionItemCollection xItems = new DesignerActionItemCollection();
xItems.Add(new DesignerActionPropertyItem("ListOfNames",
"Select aName", "", "Please select a name from the list.");
return xItems;
}
...
Unfortunately, this does not work. Instead of a ComboBox a TextBox with a button is showing. If I click on thebutton thatopens a multilineeditbox in which the lines of the list is written.
How can I define a ComboBox in a SmartTag that load's the lines for the listbox from a list of text lines?
Thanks
Xaver
VID-Software GmbH, Switzerland