How can this work ?

Jarod

Regular
Joined
Feb 5, 2003
Messages
82
Location
Bruxelles
Hello

I have my created my own component with a property which is a StringCollection.
As I wanted to be able to use my property, I add to specify for the correct designer (instead of the default one : two panels and the add button)

So I have found that I add to use the following attribute:
Visual Basic:
Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design", "System.Drawing.Design.UITypeEditor, System.Drawing")
And it is working, bringing me the nice StringCollectionEditor, as for the ComboBox.
However, I prefer working with types rather than type-fullnames
So modified the attribute as
Visual Basic:
Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design", GetType(System.Drawing.Design.UITypeEditor))
It's works fine, but my "problem" is that I don't understand the syntax of the first part. What does that mean ? There is no type called System.Windows.Forms.Design.StringCollectionEditor
And what does mean the , System.Design or , System.Drawing in the two strings ?

Thanks,
 
Back
Top