private void label1_Click(object sender, EventArgs e) { pancontrols.Controls.Clear(); Register_UI reg = new Register_UI(); reg.TopLevel = false; pancontrols.Controls.Add(reg); reg.Show(); }
private void clinic_Load(object sender, EventArgs e) { lbl.Add(((Label)label1)); pancontrols.Controls.Clear(); Register_UI reg = new Register_UI(); reg.TopLevel = false; pancontrols.Controls.Add(reg); reg.Show(); }
private void clinic_Load(object sender, EventArgs e) { lbl.Add(((Label)label1)); lbl[0].Image = Image.FromFile(Application.StartupPath + "\\imag\\" + lbl[0].Tag); pancontrols.Controls.Clear(); Register_UI reg = new Register_UI(); reg.TopLevel = false; pancontrols.Controls.Add(reg); reg.Show(); }
private void label7_Click(object sender, EventArgs e) { if (lbl.Count != 0) { string str = (lbl[0].Tag + "").Replace('-', ' '); //lbl[0].Image = Image.FromFile(Application.StartupPath + "\\imag\\" + str); lbl.Clear(); } lbl.Add(((Label)sender)); //((Label)sender).Image = Image.FromFile(Application.StartupPath + "\\imag\\" + ((Label)sender).Tag); pancontrols.Controls.Clear(); Register_UI reg = new Register_UI(); reg.TopLevel = false; pancontrols.Controls.Add(reg); reg.Show(); }