This is a multi-part message in MIME format.
------=_NextPart_000_0146_01C4B8F7.5C508430
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Ensure that you set the DesignerSerializationVisibility attribute with a =
setting of DesignerSerializationVisibility.Content on your collection =
property.=20
--=20
Bob Powell [MVP]
Visual C#, System.Drawing
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm The GDI+ FAQ RSS feed:
http://www.bobpowell.net/faqfeed.xml Windows Forms Tips and Tricks RSS: =
http://www.bobpowell.net/tipstricks.xml Bob's Blog:
http://bobpowelldotnet.blogspot.com/atom.xml [quoted text, click to view] "Nice Chap" <NiceChap@PlasmaDyne.com> wrote in message =
news:ukpuHI1tEHA.3984@TK2MSFTNGP09.phx.gbl...
I have a collection class that is derived from CollectionBase. There =
is a property on my *Form Class* of type=3D MyCollection class. This =
form property has the following attributes:
<Editor(GetType(System.ComponentModel.Design.CollectionEditor), =
GetType(System.Drawing.Design.UITypeEditor)), =
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)>=
_
Public Property Parameters() As UIWinScreenParametersCollection
At deign-time VS.Net displays the collection editor and allow us to =
input new items but items are not getting presisted. Is there any other =
attribute I have to use please ?
Thanks
------=_NextPart_000_0146_01C4B8F7.5C508430
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#f0f9df background=3D"">
<DIV><FONT face=3DArial size=3D2>Ensure that you set the=20
DesignerSerializationVisibility attribute with a setting of=20
DesignerSerializationVisibility.Content on your collection property.=20
</FONT></DIV>
<DIV><BR>-- <BR>Bob Powell [MVP]<BR>Visual C#, System.Drawing</DIV>
<DIV> </DIV>
<DIV>Answer those GDI+ questions with the GDI+ FAQ<BR><A=20
href=3D"http://www.bobpowell.net/gdiplus_faq.htm">http://www.bobpowell.ne=
t/gdiplus_faq.htm</A></DIV>
<DIV> </DIV>
<DIV>The GDI+ FAQ RSS feed: <A=20
href=3D"
http://www.bobpowell.net/faqfeed.xml">http://
www.bobpowell.net/fa= qfeed.xml</A><BR>Windows=20
Forms Tips and Tricks RSS: <A=20
href=3D"http://www.bobpowell.net/tipstricks.xml">http://www.bobpowell.net=
/tipstricks.xml</A><BR>Bob's=20
Blog: <A=20
href=3D"
http://bobpowelldotnet.blogspot.com/atom.xml">http://bobpowelldot=
net.blogspot.com/atom.xml</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Nice Chap" <<A=20
=
href=3D"mailto:NiceChap@PlasmaDyne.com">NiceChap@PlasmaDyne.com</A>> =
wrote in=20
message <A=20
=
href=3D"news:ukpuHI1tEHA.3984@TK2MSFTNGP09.phx.gbl">news:ukpuHI1tEHA.3984=
@TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I have a collection class that is =
derived from=20
CollectionBase. There is a property on my <STRONG>*Form =
Class*</STRONG> of=20
type=3D MyCollection class. This form property has the following=20
attributes:<BR><BR></FONT><FONT face=3DArial size=3D2><FONT size=3D2>
<P><FONT face=3D"Courier New"><Editor(</FONT></FONT><FONT=20
face=3D"Courier New"><FONT color=3D#0000ff =
size=3D2>GetType</FONT><FONT=20
size=3D2>(System.ComponentModel.Design.CollectionEditor), </FONT><FONT =
color=3D#0000ff size=3D2>GetType</FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New">(System.Drawing.Design.UITypeEditor)),=20
=
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)&=
gt;=20
_</FONT></P>
<P></FONT><FONT face=3D"Courier New"><FONT color=3D#0000ff=20
size=3D2>Public</FONT><FONT size=3D2> </FONT><FONT color=3D#0000ff=20
size=3D2>Property</FONT><FONT size=3D2> Parameters() </FONT><FONT =
color=3D#0000ff=20
size=3D2>As</FONT><FONT size=3D2>=20
UIWinScreenParametersCollection</P></FONT></FONT></FONT></DIV><FONT =
face=3DArial=20
size=3D2></FONT><FONT face=3DArial size=3D2></FONT><FONT face=3DArial=20
size=3D2></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2>At deign-time VS.Net displays the =
collection=20
editor and allow us to input new items but items are not getting =
presisted. Is=20
there any other attribute I have to use please ?<BR></FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>Thanks</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0146_01C4B8F7.5C508430--