private void novoTextoToolStripMenuItem_Click(object sender, EventArgs e) { var frmTexto = new FrmTexto(); frmTexto.MdiParent = MDISingleton.InstanciaMDI(); frmTexto.Show(); // aqui estou a dizer que o meu formulario novo texto vai abrir dentro do MDI }
private void novoTextoToolStripMenuItem_Click(object sender, EventArgs e) { var frmTexto = new FrmTexto(); frmTexto.MdiParent = MDISingleton.InstanciaMDI(); frmTexto.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); //Application.Run(new MDIParentPrincipal()); Application.Run(MDISingleton.InstanciaMDI()); // Agora tem a classe singleton como instancia global do MDI }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(MDISingleton.InstanciaMDI()); }