Groups | Blog | Home
all groups > dotnet windows forms designtime > may 2005 >

dotnet windows forms designtime : Question about the String Collection Editor


Miao Chen
5/16/2005 3:25:14 PM
I am creating a custom control which have an "AutoCompleteStringCollection"
property, which is like in TextBox control. How I can tell the designer I
wan to lauch String Collection Editor.


Francisco Padron
5/21/2005 8:27:27 PM
Reflector says StringCollectionEditor is an internal class.

internal class StringCollectionEditor : CollectionEditor

You may have to implement your own.

Note ListBox.Items uses:

[ Editor("System.Windows.Forms.Design.ListControlStringCollectionEditor,
System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor)) ]
public ListBox.ObjectCollection Items
{
}

ListControlStringCollectionEditor derives from CollectionEditor.

I don't know why this class (CollectionEditor) is not public, doesn't make
any sense to me.

--
Francisco Padron
www.chartfx.com


[quoted text, click to view]

AddThis Social Bookmark Button