コード例 #1
0
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            /// Instantiate the form
            SharpAutoCenterForm sharpAutoCenterForm = new SharpAutoCenterForm();

            this.SplashFormTimer.Enabled = false;
            sharpAutoCenterForm.Show();
            this.Hide();
        }
コード例 #2
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ///initilize SplashForm and SharpAutoCenterForm
            Program.MySplashForm          = new SplashForm();
            Program.MySharpAutoCenterForm = new SharpAutoCenterForm();

            Application.Run(Program.MySplashForm);
        }