/* USING STREAMS CLASSROOM DEMO Created 4/11/07 */ //I modified the code to use a progress bar instead of a timer. Be sure to set the //progressBar.Step to 1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace StreamDemo { public partial class frmSplash : Form { public frmSplash() { InitializeComponent(); } private void frmSplash_Activated(object sender, EventArgs e) { //---refresh so they can see them on screen pictureBox1.Refresh(); label1.Refresh(); //---how long to make the progress bar run progressBar1.Maximum = 500000; for (Int32 t = 1; t < progressBar1.Maximum; t++) { progressBar1.Value = t; } this.Hide(); //hide splash Form myMainForm = new frmMain(); myMainForm.ShowDialog(); this.Close(); //now close splash screen } } }