Re: Force hidden property to serialize at design-time?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Try this:

Private Function ShouldSerializeMyProperty() As Boolean
Return True
End Function

Replace "MyProperty" with the property name of the property you need to be
serialized. This is valid for any type.

HTH

Carlo


-------------------------------------------
Carlo, MCP (Windows Based Applications)
carlodevREMOVE@xxxxxxxxx


"Özden Irmak" <ozdenirmak(at)isnet.net.tr> ha scritto nel messaggio
news:%23byXEH64FHA.3636@xxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> My component has a string type of property which has set "Browsable"
> attribute to false...My custom property page does set/get that property
> and I want to force it to be serialized into code in Design-Time...
>
> I tried setting various "DesignerSerializationVisibility" atrribute values
> to that property but it didn't work...Can anybody help me?
>
> Regards,
>
> Özden
>


.