private void button6_Click(object sender, EventArgs e) {//Go back to Functions Form button ArchiTechFunctions f6 = new ArchiTechFunctions(); this.Hide(); //Hides the Structural Members Form f6.ShowDialog(); this.Close(); //Closes the main form }
private void button1_Click(object sender, EventArgs e) { ArchiTechFunctions f5 = new ArchiTechFunctions(); this.Hide(); f5.ShowDialog(); this.Close(); }
private void button3_Click(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:/Users/Gerald/Documents/Database1.accdb"); OleDbCommand cmd = con.CreateCommand(); con.Open(); cmd.CommandText = "Insert into Student(FirstName,LastName)Values('" + textBox1.Text + "','" + textBox2.Text + "')"; cmd.Connection = con; cmd.ExecuteNonQuery(); MessageBox.Show("Record Submitted", "Congrats"); con.Close(); ArchiTechFunctions f1 = new ArchiTechFunctions(); this.Hide(); //Hides the main Forms f1.ShowDialog(); this.Close(); //Closes the main Form }