propertyGrid未找到类型System.String的构造函数

在main 中加入以下代码既可。
TypeDescriptor.AddAttributes( _
   
GetType(Specialized.StringCollection), _
   
New EditorAttribute( _
       
"System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", _
         
GetType(System.Drawing.Design.UITypeEditor)))

refer to http://stackoverflow.com/questions/2043579/adding-editor-editorattribute-at-run-time-dynamically-to-an-objects-property

原文地址:https://www.cnblogs.com/jjj250/p/2012066.html