private void toolEmployee_Click(object sender, EventArgs e) { panelPreference.Controls.Clear(); panelContents.Controls.Clear(); mceAdd = new MCEAdd(); pmEployee = new PMEmployee(); panelPreference.Controls.Add(pmEployee); panelContents.Controls.Add(mceAdd); }
private void frmLayout_Load(object sender, EventArgs e) { mceAdd = new MCEAdd(); pmEployee = new PMEmployee(); panelContents.SetBounds(0, 97, 1364, 652); this.Controls.Add(panelContents); panelPreference.Controls.Add(pmEployee); panelContents.Controls.Add(mceAdd); }
private void frmLayout_Load(object sender, EventArgs e) { this.MaximizeBox = false; try { mceAdd = new MCEAdd(); pmEployee = new PMEmployee(); panelPreference.Anchor = AnchorStyles.Top; //panelPreference.Dock = DockStyle.Top; panelPreference.SetBounds(0, 24, 1364, 73); panelContents.SetBounds(0, 97, 1364, 652); this.Controls.Add(panelContents); this.Controls.Add(panelPreference); panelPreference.Controls.Add(pmEployee); panelContents.Controls.Add(mceAdd); } catch { frmConnectSQL frm = new frmConnectSQL(); frm.ShowDialog(); this.Close(); } }