private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmAttendanceReport frm = new frmAttendanceReport();

            frm.label19.Text         = label12.Text;
            frm.label23.Text         = label11.Text;
            frm.cmbCourse.Text       = "";
            frm.cmbBranch.Text       = "";
            frm.cmbBranch.Enabled    = false;
            frm.cmbSemester.Text     = "";
            frm.cmbSemester.Enabled  = false;
            frm.cmbSession.Text      = "";
            frm.cmbSession.Enabled   = false;
            frm.cmbSection.Text      = "";
            frm.cmbSection.Enabled   = false;
            frm.dateTimePicker1.Text = DateTime.Today.ToString();
            frm.dateTimePicker2.Text = DateTime.Today.ToString();
            frm.crystalReportViewer1.ReportSource = null;
            frm.cmbCourse1.Text                   = "";
            frm.cmbBranch1.Text                   = "";
            frm.cmbBranch1.Enabled                = false;
            frm.cmbSemester1.Text                 = "";
            frm.cmbSemester1.Enabled              = false;
            frm.cmbSession1.Text                  = "";
            frm.cmbSession1.Enabled               = false;
            frm.cmbSection1.Text                  = "";
            frm.cmbSection1.Enabled               = false;
            frm.cmbSubjectCode.Text               = "";
            frm.cmbSubjectCode.Enabled            = false;
            frm.txtSubjectName.Text               = "";
            frm.txtSubjectName.ReadOnly           = true;
            frm.dateTimePicker4.Text              = DateTime.Today.ToString();
            frm.dateTimePicker3.Text              = DateTime.Today.ToString();
            frm.crystalReportViewer2.ReportSource = null;
            frm.Show();
        }
Beispiel #2
0
        private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLogin frm = new frmLogin();
            frmScholarshipPaymentReceiptRpt o1 = new frmScholarshipPaymentReceiptRpt();

            o1.Hide();
            frmBusFeePaymentReceiptRpt o2 = new frmBusFeePaymentReceiptRpt();

            o2.Hide();
            frmHostelFeePaymentReceiptRpt o3 = new frmHostelFeePaymentReceiptRpt();

            o3.Hide();
            frmEventsReport o4 = new frmEventsReport();

            o4.Hide();
            frmTransportationReport o5 = new frmTransportationReport();

            o5.Hide();
            frmAttendanceReport o6 = new frmAttendanceReport();

            o6.Hide();
            frmInternalMarksReport o7 = new frmInternalMarksReport();

            o7.Hide();
            frmFeeDetailsReport o8 = new frmFeeDetailsReport();

            o8.Hide();
            frmSubjectInfoReport o9 = new frmSubjectInfoReport();

            o9.Hide();
            this.Hide();
            frm.cmbUsertype.Text = "";
            frm.txtUserName.Text = "";
            frm.txtPassword.Text = "";
            frm.cmbUsertype.Focus();
            frm.Show();
        }