Copy properties

Phylum

Centurion
Joined
Jun 20, 2003
Messages
105
Location
Canada
I have a control on my form.. lets say a textbox. I programically create another textbox and want to copy all of the properties of the drawn textbox. Is there a simplier way to do this other than doing:

Visual Basic:
mytextbox.text = drawntextbox.text
mytextbox.font = drawntextbox.font
...
 
On classes that implement ICloneable (e.g., TreeNode class), you can invoke the Clone method. Unfortunately, the Textbox class doesn't implement ICloneable.
 
Back
Top