示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Hide();
            MyHome myhome = new MyHome();

            myhome.ShowDialog();
            Close();
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            GetConnection();
            string       sql = "update user set passwd='" + passwdtxt.Text + "',name='" + nametxt.Text + "',email='" + emailtxt.Text + "' where id='" + idtxt.Text + "'";
            MySqlCommand cmd = new MySqlCommand(sql, conn);

            conn.Open();
            cmd.ExecuteNonQuery();
            conn.Close();
            MessageBox.Show("정보가 수정되었습니다.");
            this.Hide();
            MyHome myhome = new MyHome();

            myhome.ShowDialog();
            this.Close();
        }