Пример #1
0
        public Form1()
        {
            InitializeComponent();

            Form f = this.FindForm();

            WindowState = FormWindowState.Maximized;

            TitleScreen ms = new TitleScreen()
            {
                Width = 800, Height = 800
            };

            ms.Location = new Point((f.Width - ms.Width) / 2, (f.Height - ms.Height) / 2);

            f.Controls.Add(ms);
        }