How to use the StringCollectionEditor

J

Joe

I've created a property that uses StringCollectionEditor. However in
the Visual Studio after I've entered the strings they are not saved to
the code. I implemented my own string collection inheriting from
CollectionBase. Any help would be greatly appreciated.

[Editor("System.Windows.Forms.Design.StringCollectionEditor,
System.Design",
"System.Drawing.Design.UITypeEditor, System.Drawing")]
public MyStringCollection Items
{
get
{
return strCollection;
}
set
{
strCollection = value;
}
}

-joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top