|
|
|
Search Stories : |
|
 |
|
>
Constructor of type system.string not found (Design Time error)
< |
|
|
When using a property grid in a .NET project (with custom server controls too) the message constructor of type system.string not found can occur on the design mode.
To solve that, add this line on the top of your property :
[Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
Exemple :
private System.Collections.Generic.List<string> _Ilist;
[Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
public System.Collections.Generic.List<string> Files_List
{
get
{
return _Ilist;
}
set
{
_Ilist = value;
}
} |
|
|
|
|
|
|
|
|
|
|
|