Groups | Blog | Home
all groups > dotnet windows forms designtime > april 2005 >

dotnet windows forms designtime : string array


David Sobey
4/3/2005 10:24:58 PM
hi

i have a control with a string[] property. i have set
[Editor("System.ComponentModel.Design.StringCollectionEditor","System.Drawing.Design.UITypeEditor"),DesignerSerializationVisibility(DesignerSerializationVisibility.Content)],
and it serialises fine. However, when the program returns to design-time
following compilation and running, the strings are still present
(serialized) in the form code, but they are no longer in the property, ie
clicking on it brings up an empty String collection editor. Any ideas?

cheers
dave

David Sobey
4/3/2005 10:30:21 PM
sorry it's now working. now i just have to figure out what's gone wrong in
it's place :)

cheers
dave

David Sobey
4/3/2005 10:56:37 PM
OK now my font property refuses to persist. The only thing i needed to get
my string array to persist was
[Editor("System.ComponentModel.Design.StringCollectionEditor","System.Drawing.Design.UITypeEditor"),DesignerSerializationVisibility(DesignerSerializationVisibility.Content)],
no type converters or anything fancy. So how do i make my font property
persist?

Cheers
dave

AddThis Social Bookmark Button