private void toolStripMenuItem5_Click(object sender, EventArgs e) { Fee_Structure fs = new Fee_Structure(); string userName = lblUserName.Text.Replace("Welcome ", ""); Control[] ctrl = fs.Controls.Find("lblUname", true); Label lblUname = (Label)ctrl.FirstOrDefault(); lblUname.Text = userName; fs.Operation = "Update"; fs.Show(); }
private void addToolStripMenuItem1_Click(object sender, EventArgs e) { Fee_Structure ne = new Fee_Structure(); ne.Show(); }