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";
        }
示例#2
0
        public App()
        {
            InitializeComponent();

            MainPage = new ProdutosView();
        }