This thread has made me think of a way to clone a control. Any one knows how?
Printable View
This thread has made me think of a way to clone a control. Any one knows how?
I wondered about the same thing. I checked some text books I have and searched online, and I can only come up with techniques to clone objects from classes you define.
Some implement the IClonable interface, and others use Serialization for a deep-deep copy ( where the object contains other object). Doesn't work with a textbox though. The error says the object is not serializable.
So, with respect to the built in controls, I can't find any way to do it.
as a quick thought : visual inheritance .
>> visual inheritance
The problem that was originally presented required the program clone system and 3rd party controls, so inheritance was not an option.
What is Visual Inheritance?
Thanks!