Exemplo n.º 1
0
        private void btnfeedback_Click(object sender, EventArgs e)
        {
            frmuserfeedback fr = new frmuserfeedback();

            fr.userid.Text  = userid.Text;
            fr.lbluser.Text = lbluser.Text;
            fr.ShowDialog();
        }
Exemplo n.º 2
0
        private void frmdashboard_FormClosed(object sender, FormClosedEventArgs e)
        {
            var result = MessageBox.Show("About to Exit Leave us a feedback", "Application Exit", MessageBoxButtons.YesNo);

            switch (result)
            {
            case DialogResult.Yes:
                frmuserfeedback fr = new frmuserfeedback();
                fr.lbluser.Text = lbluser.Text;
                fr.userid.Text  = userid.Text;
                fr.ShowDialog();
                Application.Exit();
                break;

            case DialogResult.No:
                Application.Exit();
                break;
            }
        }