Hi, I'm a university student and I have a project that deals with a point of sale, I have a problem with linking a textbox with my mysql database, I previously linked a combobox but I do not know how to link a textbox, AYUDAAAAA Link from combobox to mysql ...
string consulta = string.Format("select nombre from productos where tipo=2");
//MessageBox.Show(consulta);
MySqlCommand comando = new MySqlCommand(consulta, conexion);
MySqlDataReader lector = comando.ExecuteReader();
while (lector.Read())
{
comboBox4.Items.Add(lector.GetString(0));
}