Click here to Skip to main content
15,914,160 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my Windows Form Application, I want to apply a form which will be the first form having the software name and other brief information. When the user will run the application, that form will be started first, then after a few seconds that form will be hidden automatically and the homepage will be started. I don't know how to do this?
Please someone help.
Posted

There are loads of articles here on CodeProject on how to create a splash screen.

They should outline what you need, have a look here[^]

Hope this helps,
Fredrik
 
Share this answer
 
Hi Md Mashkoor Ahmad,

place the timer control and the below sample code is for you, look it and implement.
C#
private void MainFrm_Load(object sender, EventArgs e) { timer1.Tick += new EventHandler(timer1_Tick);

        timer1.Enabled = true;
        timer1.Interval = 4000;
        timer1.Start();

    }

    private void timer1_Tick(object sender, EventArgs e)
    {
        timer1.Stop();
        this.Hide();
        HomeFrm f = new HomeFrm();
        f.ShowDialog();
    }


Thanks,
SP
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900