在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

 

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-01-05
  • 2021-11-17
猜你喜欢
  • 2021-08-16
  • 2021-10-26
  • 2021-08-26
  • 2021-06-27
  • 2021-11-12
相关资源
相似解决方案