예제 #1
0
        private void StartTimer_Tick(object sender, EventArgs e)
        {
            StartTimer.Dispose();
            StartForm startForm = new Assignment4.StartForm();

            startForm.Show();
            this.Hide();
        }
예제 #2
0
        // Method is called each time the StartTimer timer ticks
        private void StartTimerTick(object sender, EventArgs e)
        {
            // Increase the Opacity of the form to make the form more visible
            Opacity += 0.05;

            // If the form is at 100% opacity (or fully visible)
            if (Math.Abs(Opacity - 100) < 0.05)
            {
                // Stop the timer
                StartTimer.Enabled = false;

                // Dispose of the timer to free resources
                StartTimer.Dispose();
            }
        }