コード例 #1
0
ファイル: Form4.cs プロジェクト: sankeerthsaan18/Dignostic
 private void button1_Click(object sender, EventArgs e)
 {
     if (v3 == null || v3.IsDisposed)
     {
         v3 = new Form5();
         v3.Show();
     }
 }
コード例 #2
0
        private void SUBMIT_Click(object sender, EventArgs e)
        {
            if (RNO.Text != "" & NAME.Text != "" & ADDRESS.Text != "" & MOB.Text != "" & EMAIL.Text != "" & BGROUP.Text != "")
            {
                str = BGROUP.Text;

                com.Connection = con;

                com.CommandText = "insert into registration(RNO,NAME,ADDRESS,MOB,EMAIL,BGROUP) values ('" + RNO.Text + "','" + NAME.Text + "','" + ADDRESS.Text + "','" + MOB.Text + "','" + EMAIL.Text + "','" + BGROUP.Text + "')";
                com.ExecuteNonQuery();
              //          com.Dispose();
                // MessageBox.Show("record inserted");
            }
            else
            {
                MessageBox.Show("Plzzz insert all entries ");
            }
            //            /*      com.CommandText = "select count(RNO) into  cnt  from reg where BGROUP=" + BGROUP.Text + "";
            //com.Connection = con;

               // com.CommandText = "select *  from REG where BGROUP='" + str + "' ";

            Form5 ob = new Form5();
            ob.passvalue(con, str);
            ob.Show();
            Hide();

              //  Session.Add("BGROUP", str);
        }