private void Inicio() { if (this.panelContenedor.Controls.Count > 0) { this.panelContenedor.Controls.RemoveAt(0); } AllProveedor form = new AllProveedor(); form.TopLevel = false; form.Dock = DockStyle.Fill; this.panelContenedor.Controls.Add(form); this.panelContenedor.Tag = form; form.Show(); }
private void getProveedores(object sender, TileItemEventArgs e) { if (this.panelContenedor.Controls.Count > 0) { this.panelContenedor.Controls.RemoveAt(0); } AllProveedor form = new AllProveedor(); form.TopLevel = false; form.Dock = DockStyle.Fill; this.panelContenedor.Controls.Add(form); this.panelContenedor.Tag = form; form.Show(); }