Create fields that would contain defining properties of your controls:
X, Y, Width, Height, Text, optionally, color, control type (e.g. a string
that is the class name: myControl.GetType().FullName)
When restoring, do something like this:
Control c = (Control)Activator.CreateInstance(Type.GetType(typeName));
Control.Location = new Rectangle(X, Y, Width, Height);
Control.Text = text;
etc.
"Zahid" <(E-Mail Removed)> wrote in message
news:068c01c37b6d$3bcb3250$(E-Mail Removed)...
> Hi,
>
> Anybody know how to save a Button into an SQLServerCe
> database field? Or any other Control?
>
> Thanks in advance.
|