private void LoginButton_Click(object sender, EventArgs e)
        {
            try
            {
                HomePageExecutiveForm Form2 = new HomePageExecutiveForm();

                this.Hide();

                Form2.Activate();
                Form2.Show();

            }
            catch(Exception exception)
            {
                string exceptionMessage;
                exceptionMessage = exception.Message + exception.StackTrace + exception.TargetSite;
                MessageBox.Show(exceptionMessage, "Contact Administrator", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
        private void LoginButton_Click(object sender, EventArgs e)
        {
            try
            {
                HomePageExecutiveForm Form2 = new HomePageExecutiveForm();


                this.Hide();


                Form2.Activate();
                Form2.Show();
            }
            catch (Exception exception)
            {
                string exceptionMessage;
                exceptionMessage = exception.Message + exception.StackTrace + exception.TargetSite;
                MessageBox.Show(exceptionMessage, "Contact Administrator", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }