Is there anyway to make a copy of a control and change the properties in the copy of the control without chaning the properties to the orginal. Something like this...
Control _newControl = _orginalControl;
_newControl.Controls.Clear();
D3M1TR1US Tuesday, March 11, 2008 11:06 PM
Not really. If the control implemented IClonable you coudl. Basically you have to copy the fields over. You could use some generic reflection tool to reflect over all public properties and copy them over, but this may not always work.
Dan Rigsby Tuesday, March 11, 2008 11:16 PM
Not really. If the control implemented IClonable you coudl. Basically you have to copy the fields over. You could use some generic reflection tool to reflect over all public properties and copy them over, but this may not always work.