با سلام خدمت مدیران محترم و دوستان گرامی
سوالم در خصوص ارسال اطلاعات از داخل فایل اکسل به درون تکست باکس هاست. ارسال این اطلاعات وقتی به تکست باکس روی فرم باشه مشکلی نداره . ولی وقتی همین ازلاعات رو می خوام به تکست باکس داخل tab page ها بفرسته خطا میده. کدی که استفاده کردم هم اینه:
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (TabPage tabPage in TabControl.TabPages)
{
foreach (Control control in tabPage.Controls)
{
if (control is TextBox)
{
List<string> currentColumnRows = new ExcelReader(this.a).GetSpecificColumnRows(this.comboBox1.SelectedItem.ToString());
this.textBox0.Text = currentColumnRows[0];
this.textBox1.Text = currentColumnRows[1];
this.textBox2.Text = currentColumnRows[2];
this.textBox3.Text = currentColumnRows[3];
this.textBox4.Text = currentColumnRows[4];
this.textBox5.Text = currentColumnRows[5];
this.textBox6.Text = currentColumnRows[6];
this.textBox7.Text = currentColumnRows[7];
this.textBox8.Text = currentColumnRows[8];
this.textBox9.Text = currentColumnRows[9];
this.textBox10.Text = currentColumnRows[10
ممنون میشم راهنمایی کنید.