Beispiel #1
0
        private void btn_Login_Click(object sender, EventArgs e)
        {
            Frm_Main fm = (Frm_Main)this.Owner; //得到主窗体对象

            fm.user = txt_User.Text;            //设置主窗体字段
            this.Close();                       //关闭当前窗体
        }
        private void btn_Login_Click(object sender, EventArgs e)
        {
            Frm_Main fm = (Frm_Main)this.Owner; //得到主視窗物件

            fm.user = txt_User.Text;            //設定主視窗欄位
            this.Close();                       //關閉目前視窗
        }