I have the following code in my C# Winforms Application. I am using SQL Lite but how do I pass the values from my text boxes into the insert statement:
void InsertConnectionDetails()
{
m_dbConnection.Open();
string sql = "insert into rdpdirectory (company, server, username, password) values (txtCompany, txtServer, txtUsername,txtPassword)";
SQLiteCommand command = new SQLiteCommand(sql, m_dbConnection);
command.ExecuteNonQuery();
m_dbConnection.Close();
MessageBox.Show("Done");
}