public void FBD(int I) { FolderBrowserDialog FBD = new FolderBrowserDialog(); DialogResult result = FBD.ShowDialog(); if (result == DialogResult.OK) { Formas.textBox[I].Text = FBD.SelectedPath; Formas.toolStripStatusLabel1.Text = "Настройка"; } } How correctly to address to i elements in functions? Gives an error message
"Install.Form1" does not contain a definition for "textBox". Could not find extension method "textBox" that takes the first argument of type "Install.Form1" (missing the using directive or link to the assembly?)
Formasfield or property intextBox? If not, it is not clear what surprises you. - VladD