private void P_calendar_Click(object sender, EventArgs e) { Fcalendrier RetourCalendrier = new Fcalendrier(); RetourCalendrier.MdiParent = this.ParentForm; RetourCalendrier.StartPosition = FormStartPosition.CenterScreen; RetourCalendrier.Size = new Size(Parent.Width - 4, Parent.Height - 4); RetourCalendrier.Show(); Close(); }
public Fcontainer() { InitializeComponent(); WindowState = System.Windows.Forms.FormWindowState.Maximized; //Test for initializing or not the software /*if(not initialized)*/ L_date.Text = "Jour ?, ?h?"; Finitialization init = new Finitialization(); init.MdiParent = this; init.StartPosition = FormStartPosition.CenterScreen; init.Show(); Fcalendrier accueil = new Fcalendrier(); accueil.MdiParent = init.MdiParent; accueil.StartPosition = FormStartPosition.CenterScreen; accueil.Size = new Size(Width - 4, Height - 4); accueil.Show(); }