A lot of times i want to automate some statements by using string formatting, but unfortunately it doesn't work !
for example if i have this code :
Textbox1.Text = "";
Textbox2.Text = "";
Textbox3.Text = "";
how can i achieve the same results by doing something like this :
for ( int i = 1; i < 4; ++i )
string.Format( "Textbox{0}.Text", i ) = "";
the code above is completely wrong, my goal was to make the question clear .
Update : basically referring to a variable with a string