private void newToolStripButton_Click(object sender, EventArgs e)
        {
            Vendor_Create vc = new Vendor_Create();

            vc.Show();
            this.Hide();
        }
 private void saveToolStripButton_Click(object sender, EventArgs e)
 {
     if (isvalid())
     {
         con1.Open();
         SqlCommand com1 = new SqlCommand();
         com1.Connection  = con1;
         com1.CommandText = "Insert into Venodor values ('" + textBox1.Text.Trim() + "','" + textBox2.Text.Trim() + "','" + textBox3.Text.Trim() + "','" + textBox4.Text.Trim() + "','" + textBox10.Text.Trim() + "','" + textBox5.Text.Trim() + "','" + textBox7.Text.Trim() + "','" + textBox6.Text.Trim() + "','" + textBox8.Text.Trim() + "','" + textBox9.Text.Trim() + "','" + 0 + "')";
         SqlDataAdapter da = new SqlDataAdapter(com1.CommandText, con1.ConnectionString);
         DataTable      dt = new DataTable();
         da.Fill(dt);
         MessageBox.Show("Successfully Saved");
         con1.Close();
         Vendor_Create vc = new Vendor_Create();
         this.Hide();
         vc.Show();
     }
 }
Example #3
0
        private void button5_Click(object sender, EventArgs e)
        {
            Vendor_Create vc = new Vendor_Create();

            vc.Show();
        }
Example #4
0
        private void vendorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Vendor_Create vc = new Vendor_Create();

            vc.Show();
        }