コード例 #1
0
        private void busCardHoldersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmBusHolders frm = new frmBusHolders();

            frm.lblUserType.Text = UserType.Text;
            frm.lblUser.Text     = User.Text;
            frm.Show();
        }
コード例 #2
0
        private void frmBusholderRecords_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmBusHolders frm = new frmBusHolders();

            frm.lblUserType.Text = lblUserType.Text;
            frm.lblUser.Text     = lblUser.Text;
            frm.Show();
        }
コード例 #3
0
        private void dataGridView5_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewRow dr = dataGridView5.SelectedRows[0];

            this.Hide();
            frmBusHolders frm = new frmBusHolders();

            // or simply use column name instead of index
            //dr.Cells["id"].Value.ToString();
            frm.Show();
            frm.cmbAdmissionNo.Text = dr.Cells[0].Value.ToString();
            frm.StudentName.Text    = dr.Cells[1].Value.ToString();

            frm.txtclass.Text            = dr.Cells[2].Value.ToString();
            frm.txtsection.Text          = dr.Cells[3].Value.ToString();
            frm.cmbSourceLocation.Text   = dr.Cells[4].Value.ToString();
            frm.dtpStartingDate.Text     = dr.Cells[5].Value.ToString();
            frm.btnDelete.Enabled        = true;
            frm.btnUpdate_record.Enabled = true;
            frm.button1.Enabled          = true;
            frm.btnSave.Enabled          = false;
        }