Splash Screen Coding and Design
Steps:
- Start your Visual Studio IDE.
- Click on File and Create a new Project
- Select Visual C# as Language.
- Select Windows Form Application
- Give project name
- Browse and Select project folder.
- Click on OK
- Add Label and change the Text Property to desired name
- Add a progress bar control
- Add a timer
- Add another label and change the Text property to "Loading ..."
Coding:
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;
namespace AttendanceMan
{
public partial class frmSplash : Form
{
public frmSplash()
{
InitializeComponent();
}
private void timerSplash_Tick(object
sender, EventArgs e)
{
pBar.Increment(1);
if (pBar.Value == 100)
{
timerSplash.Stop();
frmLogin login = new frmLogin();
login.Show();
this.Hide();
}
}
private void frmSplash_Load(object
sender, EventArgs e)
{
timerSplash.Enabled =
true;
}
}
}
Watch Video Tutorial here
Watch Video Tutorial here
No comments:
Post a Comment