G
Guest
If you change the font property on a Form, it adds/changes the code in the
form to something like this:
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((System.Byte)(0)));
I've created a new property on a usercontrol that stores/returns a class
object called PersonDetails. I want the property value to be stored simular
to the Font property settings.
e.g.
this.myControl.PersonDetails = new PersonDetails(10, "My Name", 54,
PersonSex.Male);
What do I need to do to the usercontrol and/or PersonDetails class to make
it save the property this way?
Thank you for your help.
Regards
Mark
form to something like this:
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F,
System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,
((System.Byte)(0)));
I've created a new property on a usercontrol that stores/returns a class
object called PersonDetails. I want the property value to be stored simular
to the Font property settings.
e.g.
this.myControl.PersonDetails = new PersonDetails(10, "My Name", 54,
PersonSex.Male);
What do I need to do to the usercontrol and/or PersonDetails class to make
it save the property this way?
Thank you for your help.
Regards
Mark