Variable name as object name?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

I would like to use a variable name as an object name. In theory this would
work like this

string strName = "objectName";

TextBox strName = new TextBox();

strName.Text = "I used a variable as object name";

This, of course, does not work. How can I do this?

Thanks guys

Chris
 
Back
Top