:cool: Hey Guys,,
I Created a preloader for my C# project to load a form :icon_redface:
public partial class frmLoading : Form
{
public frmLoading()
{
InitializeComponent();
}
int z;//Variable for Progressbar Value
frmLogin G2 = new frmLogin();
private void frmLoading_Load(object sender, EventArgs e)
{
this.timer1.Enabled = true;
this.timer1.Interval = 50;
}
private void timer1_Tick(object sender, EventArgs e)
{
z += 2;
if (z > 100)
{
this.Hide();
//MessageBox.Show ("Load Form 2");
this.timer1.Enabled = false;
G2.Show();
return;
}
this.progressBar1.Value = z;
}
}
i know this is not the best, but works charm.. :icon_frown:
guys..but this doesn't work perfectly, have i made any mistakes over here ? :icon_cry:
can i preload each and every form individually ?:icon_rolleyes:
and show thier progress in the splash screen ? :icon_eek: .. i have some crazy ideaz :icon_cheesygrin:
Tnx in advance :)