Whopsy,
shouldn't be watching tv while answering to newsgroups - obviously hit the
send button too early...
My answer keeps being thrilling that way, doesn't it? ;-)
Anyway, what I was going to write, wasn't right, anyway.
Armin is right, AFAIK TextBox isn't completely serializable, so you have to
copy property settings the way you already do it.
Using Reflection could be another approach, but that would be breaking a fly
on the wheel...
(God, I love
http://dict.leo.org/)
Klaus
"Klaus Löffelmann" <fo***********@loeffelmann.de> schrieb im Newsbeitrag
news:40**********************@news.freenet.de...
Arthlan,
why don't you simply inherit TextBox inbto
"Arthlan" <ar*****@yahoo.com> schrieb im Newsbeitrag
news:13**********************************@microsof t.com... Hi,
I would like to programatically create a new textbox control - and then copy about a dozen of the properties of a "template" textbox control into
it. Right now I'm doing it property by property - I was wondering if
there was a "for each" type of approach. If I could copy ALL of the properties
from my template textbox, that would also be okay.
I'd appreciate any suggestions.
Thanks!