private void button3_Click(object sender, EventArgs e) { ProdutosView newMDIChild = new ProdutosView(); // Set the Parent Form of the Child window. newMDIChild.MdiParent = this; newMDIChild.StartPosition = FormStartPosition.CenterScreen; newMDIChild.Dock = DockStyle.Fill; // Display the new form. newMDIChild.Show(); lblTitleScreen.Text = "Produtos"; }
public App() { InitializeComponent(); MainPage = new ProdutosView(); }