DevExpress: Splash Screen in C#
By FoxLearn 7/18/2017 9:24:01 PM 7.27K
How to make a Splash Screen in C# with DevExpress
Step 1: Click New Project, then select Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "SplashScreenExample" and then click OK
Step 2: Design your form as below
frmSplashScreen
frmMain
You need to add a SplashScreenManager to your windows form application
Step 3: Add code to handle your form as below
frmMain
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; using System.Threading; namespace SplashScreenExample { public partial class frmMain : DevExpress.XtraEditors.XtraForm { public frmMain() { InitializeComponent(); } private void frmMain_Load(object sender, EventArgs e) { //Demo loading data... for(int i = 0; i < 100; i++) { Thread.Sleep(100); } } } }
frmSplashScreen
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DevExpress.XtraSplashScreen; namespace SplashScreenExample { public partial class frmSplashScreen : SplashScreen { public frmSplashScreen() { InitializeComponent(); } #region Overrides public override void ProcessCommand(Enum cmd, object arg) { base.ProcessCommand(cmd, arg); } #endregion public enum SplashScreenCommand { } } }
VIDEO TUTORIALS
Categories
Popular Posts
Visual Studio: Auto increment version
04/01/2024
What is ARM architecture?
04/01/2024
What Are RESTful Web Services?
02/19/2024