Persisting the properties of a nested control at design time  
Author Message
PapaAdmin





PostPosted: Top

Visual C#.Net >> Persisting the properties of a nested control at design time I have a progress bar which is nested control and I want to persist
the design time properties of this nested control. I thought all I
needed to do was mark it with the
DesignerSerializationVisibility.Content attribute, as below:

[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ProgressBar ProgressBar
{
get{return _progressBar;}
set{_progressBar = value;}
}

but for some reason the properies are not being persisted (eg value),
has anyone got any ideas of how to do this?

thanks
andrew
www.vbusers.com

DotNet5