hi
i write some code to write for access file (.db) but i have some problem and i dont know how to solve it...
Here is the code :
string a = "";
foreach (Control c in this.Controls)
{
for (int i = 1; i <= 80; i++)
{
if (c.Name == "textBox" + i.ToString())
{
// c.Text = i.ToString();
a += c.Name + ", ";
break;
}
}
}
database.UsersDataTable Tclients = database.Users;
Tclients.AddUsersRow(a);
usersTableAdapter.Update(Tclients);
the problem is with this code :
Tclients.AddUsersRow(a);
i cant to put var instead textBox1.Text,TextBox2.Text .....
why?? and how can i do it??
Thanks;