abdelwaheb ammar

abdelwaheb ammar

  • 1.3k
  • 457
  • 124.7k

editors collection with DesignerSerializationVisibility

Sep 8 2016 7:08 PM
Good evening all, I try to create a custom combobox with "user control" and set during the insertion property bar.
 
 
that's my main goal, but now I try to insert a custom combo box that lets me set through collection editors.
 
 
 
 
  1. List<String> list = new List<String>();  
  2.         [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]  
  3.   
  4.         public List<String> MyProperty { get { return list; } set { list = value; } }  
 but when I want to add a new member it shows me this error message:
 
 
 
how to find a solution for this error? 

Answers (2)