SHARE
TWEET

Untitled

a guest Jun 15th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try { Form1.DataBaseConnection.Open(); } catch (Exception E) { MessageBox.Show("!!ATTENTION!! - Error accessing database. Please restart the application. ::::" + E.ToString()); Form1.DataBaseConnection.Close(); }
  2.         OleDbCommand DataBaseAddEntry = new OleDbCommand();
  3.         DataBaseAddEntry.Connection = Form1.DataBaseConnection;
  4.         DataBaseAddEntry.CommandText = "insert into Shoe(Size, Type, Name) values('" + int.Parse(TxtBoxSize.Text) + "','" + TxtBoxType.Text + "','" + TxtBoxName.Text + "')";
  5.         DataBaseAddEntry.ExecuteNonQuery();
  6.         Form1.DataBaseConnection.Close();
  7.         RefreshDataGridView();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top