Gustavo

Gustavo

  • NA
  • 1.3k
  • 454.5k

How Do I: Setup the assignment of a form so I can change the textBox in it?

May 22 2010 11:58 PM

Hello:
 
In a routine I need to populate the TextBoxs in a Form. How do I assign a form that I only have the string of the Form name? Not sure how to explain this. If someone replys to this post, I can maybe explain it better if questions are asked.
Below is the code that I have started:
 
for (TheRow = 0; TheRow < FormICEPack.dataGridViewRecord.Rows.Count - 1; TheRow++)
{
TheColumnName = FormICEPack.dataGridViewRecord.Rows[TheRow].Cells[
"Column"].Value.ToString();
TheValue = FormICEPack.dataGridViewRecord.Rows[TheRow].Cells[
"TheValue"].Value.ToString();
MessageBox.Show("L-0617: TheRow=" + TheRow + " TheColumnName=" + TheColumnName + " TheValue=" + TheValue);
//Form_ID + ".textBox" + TheColumnName + ".Text" = TheValue;
//FormCompany.textBoxAddress_1.Text = TheValue;
}

Answers (1)