private void frmSplash_Load(object sender, EventArgs e) { try { //Attempt to open a connection to verify the presence of the database lblConnection.Text = "Checking connection..."; string connectionString; SqlConnection connection; connectionString = @"Data Source={SQL Server};SERVER=Nsccsqlinst16.nscc.edu;Database=CITC_CTEAM;UID=CITC_CTEAM;PWD=ITROCKS;"; connection = new SqlConnection(connectionString); connection.Open(); //Check to see if a connection was established. if (connection != null && connection.State == ConnectionState.Open) { lblConnection.Text = "Connection established!"; } connection.Close(); } catch (SqlException ex) { //If no connection, stop the timer and throw an error. SplashTimer.Stop(); MessageBox.Show("Connection to the database could not be established. \nPlease try again later.\n\n" + ex.Message); this.Close(); } }
private void SplashTimer_Tick(object sender, EventArgs e) { prgSplash.Increment(2); if (prgSplash.Value == 100) { SplashTimer.Stop(); } }
private void SplashTimer_Tick(object sender, EventArgs e) { SplashTimer.Stop(); Main Main = new Main(); Main.Show(); Hide(); }
private void SplashTimer_Tick(object sender, EventArgs e) { SplashTimer.Stop(); SelectionForm select = new SelectionForm(); select.Show(); this.Hide(); }
private void SplashScreen_KeyDown(object sender, KeyEventArgs e) { SplashTimer.Stop(); Main Main = new Main(); Main.Show(); Hide(); }
private void SplashTimer_Tick(object sender, EventArgs e) { frmLogin login = new frmLogin(); login.Show(); SplashTimer.Stop(); this.Hide(); }
private void SplashTimer_Tick(object sender, EventArgs e) { SplashTimer.Stop(); this.Hide(); SecureBinHome MainPage = new SecureBinHome(); MainPage.Show(); }
public void ShowForm3() { // The minimum amount of time the splash screen // will be visible. SplashTimer.Enabled = true; SplashTimer.Interval = 2000; SplashTimer.Start(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Splash); SplashTimer wavetimer = new SplashTimer(SplashTimer.SPLASH_DISPLAY_LENGTH + 500, 500); wavetimer.OnCompleted += Wavetimer_OnCompleted; wavetimer.Start(); }
private void SplashTimer_Tick(object sender, EventArgs e) { progress += 10; lblLoading.Text = String.Format("Loading {0}%...", progress); Logo2.Visible = false; SplashAnimator3.Show(Logo2); if (progress >= 110) { SplashTimer.Stop(); frmLogin log = new frmLogin(); this.Hide(); SplashAnimator2.Show(log); } }
private void Timer1_Tick(object sender, EventArgs e) { //Second = Second + 1; //if (Second >= 10) //{ // SplashTimer.Stop(); // Timer stops functioning // HideSplash(); //} Console.Out.WriteLine("timer clicked"); SplashTimer.Stop(); this.Hide(); Form1 mainform = new Form1(); mainform.Show(); }
private void frmSplashScreen_Load(object sender, EventArgs e) { refresh(); SplashTimer.Start(); }
private void SplashScreen_Load(object sender, EventArgs e) { SplashTimer.Start(); }
public SplashScreen() { InitializeComponent(); Main = new MainForm(); SplashTimer.Start(); }
private void SplashScreen_KeyPress(object sender, KeyPressEventArgs e) { SplashTimer.Stop(); Main.Show(); Hide(); }
private void pictureBox1_Click(object sender, System.EventArgs e) { SplashTimer.Stop(); Main.Show(); Hide(); }
private void SplashTimer_Tick(object sender, System.EventArgs e) { SplashTimer.Stop(); Main.Show(); Hide(); }
/// <summary> /// This form will be visible for 3 secounds then it will be hidden and /// timer will be stopped then show the start form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SplashTimer_Tick(object sender, EventArgs e) { this.Hide(); SplashTimer.Stop(); Program.startForm.Show(); }
private void SplashForm_Load(object sender, EventArgs e) { SplashTimer.Start(); // start timer }
public SplashScreen() { InitializeComponent(); SplashTimer.Start(); }
private void SplashScreen_Load(object sender, EventArgs e) { VersionLabel.Text = ConfigurationSettings.AppSettings["Version"]; SplashTimer.Start(); }