G
Guest
Sorry for the newbie question ...
I need to programatically generate code for any control. One of my doubts
is how to identify the properties that were changed after "MyControl
myControl = new MyControl()". In other words, if the user coded
myControl.Location = new Point(10, 10);
by programatically analysing myControl properties, I need to be able to
detect that the Location property was changed, so I will be able to
generate the following line of code:
myControl.Name + ".Location = new Point(" +
myControl.Location.X.ToString() + ", " + myControl.Location.Y.ToString() +
");\r\n";
I need to do this for all the properties changed.
Thanks for any help.
_____
Marco
I need to programatically generate code for any control. One of my doubts
is how to identify the properties that were changed after "MyControl
myControl = new MyControl()". In other words, if the user coded
myControl.Location = new Point(10, 10);
by programatically analysing myControl properties, I need to be able to
detect that the Location property was changed, so I will be able to
generate the following line of code:
myControl.Name + ".Location = new Point(" +
myControl.Location.X.ToString() + ", " + myControl.Location.Y.ToString() +
");\r\n";
I need to do this for all the properties changed.
Thanks for any help.
_____
Marco