private void frmCompanyRecord_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmCompany frm = new frmCompany();

            frm.Show();
        }
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewRow dr = dataGridView1.SelectedRows[0];

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

            frm.Show();
            frm.txtCompanyName.Text = dr.Cells[0].Value.ToString();
            frm.textBox1.Text       = dr.Cells[0].Value.ToString();
            frm.btnDelete.Enabled   = true;
            frm.btnUpdate.Enabled   = true;
            frm.txtCompanyName.Focus();
            frm.btnSave.Enabled = false;
        }
        private void companyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCompany frm = new frmCompany();

            frm.Show();
        }