j_sen21

j_sen21

  • NA
  • 57
  • 0

TextBox.Name

Oct 19 2007 10:31 AM

I wrote textbox names to a textfile with values.

In another program im reading in those value with the textboxes, but the txtbox.name property is not doing what i though it would( Not printing anything)

textfile row--> Where oneLayer is the name of the textbox.

oneLayer = moveRight

private void writeToApp(string readIn)

{

//MessageBox.Show(readIn);

TextBox txtBox = new TextBox();

int index = readIn.IndexOf(@"=");

string name = readIn.Substring(0, index) + "_text";

txtBox.Name = name;

txtBox.Text = "This is a test";

Help!!! In debug mode, the txtbox.name property is getting set, but not printing to the program.

Thanks.

 

 

 


Answers (7)