private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { assingrple s = new assingrple(); this.Hide(); s.Show(); }
private void btnadd_Click(object sender, EventArgs e) { con.Open(); try { string q = "insert into Project(Description,Title) values( '" + txtdes.Text + "','" + txttitle.Text + "')"; SqlCommand cmd = new SqlCommand(q, con); cmd.ExecuteNonQuery(); MessageBox.Show("data insert sucessfuly"); txtdes.Text = " "; txttitle.Text = " "; assingrple a = new assingrple(); this.Hide(); a.Show(); } catch (Exception ex) { MessageBox.Show("alreadyexist"); } con.Close(); }