private void cbox() { myConnection.GetConnection(); MySqlDataAdapter sqlgender = new MySqlDataAdapter("Select * from users", myConnection.GetConnection()); DataTable dtgen = new DataTable("users"); sqlgender.Fill(dtgen); cbxnames.DataSource = dtgen; cbxnames.ValueMember = dtgen.Columns[0].ColumnName; cbxnames.DisplayMember = dtgen.Columns[1].ColumnName; }
Select * From ABC Where ID =@ID
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)