G
Guest
I would lik to instantiate the appropriate control/class given its name, such
as: Control c = new Control("TextBox") this should create a new TextBox().
I can write my own code that will create the appropriate control according
to the given name using switch statement, but I'm looking for a more elegant
solution using Type class or something like that.
Thanks in advance,
Shehab.
as: Control c = new Control("TextBox") this should create a new TextBox().
I can write my own code that will create the appropriate control according
to the given name using switch statement, but I'm looking for a more elegant
solution using Type class or something like that.
Thanks in advance,
Shehab.