Hello
You need to add a Form and then you can use the following code
Add 2 labels on that form 1 for storing the PC name.Name the label as lblPcName and another to show what is loading lblLoading
add 4 Timers and then use the code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace School
{
public partial class Splash : Form
{
public Splash()
{
InitializeComponent();
}
private void Splash_Load(object sender, EventArgs e)
{
lblPcName.Text = System.Environment.MachineName;
Thread.Sleep(1000);
timer1.Enabled = true;
}
private void timer1_Tick(object sender, EventArgs e)
{
lblLoading.Text = "Loading Environment...";
timer1.Enabled = false;
timer2.Enabled = true;
Thread.Sleep(1000);
}
private void timer2_Tick(object sender, EventArgs e)
{
lblLoading.Text = "Initializing Tools... ";
timer2.Enabled = false;
timer3.Enabled = true;
Thread.Sleep(1000);
}
private void timer3_Tick(object sender, EventArgs e)
{
lblLoading.Text = "Building Workspace...";
timer3.Enabled = false;
timer4.Enabled = true;
Thread.Sleep(1000);
}
private void timer4_Tick(object sender, EventArgs e)
{
Thread.Sleep(1000);
timer4.Enabled = false;
yourform objform = new yourform();
this.Hide();
yourform .Show();
}
}
}
Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved
Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator