private void lblCustomerList_Click(object sender, EventArgs e) { frmCustomerList cl = new frmCustomerList(); cl.lblUserName.Text = lblUserName.Text; cl.lblUserType.Text = lblUserType.Text; cl.ShowDialog(); }
private void SearchCustomerToolStripMenuItem_Click(object sender, EventArgs e) { frmCustomerList clist = new frmCustomerList(); this.Hide(); clist.lblUserName.Text = lblUserName.Text; clist.lblUserType.Text = lblUserType.Text; clist.ShowDialog(); }