DevExpress: Splash Screen Manager in C#
By FoxLearn 7/23/2017 9:58:32 PM 8.62K
How to use splash screen manager 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 "ProgressIndicatorExample" and then click OK
Step 2: Design your form as below
frmWaitForm
Form1
Step 3: Add code to handle your form as below
frmWaitForm
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DevExpress.XtraWaitForm; namespace ProgressIndicatorExample { public partial class frmWaitForm : WaitForm { public frmWaitForm() { InitializeComponent(); this.progressPanel1.AutoHeight = true; } #region Overrides public override void SetCaption(string caption) { //Set caption text base.SetCaption(caption); this.progressPanel1.Caption = caption; } public override void SetDescription(string description) { //Set description text base.SetDescription(description); this.progressPanel1.Description = description; } public override void ProcessCommand(Enum cmd, object arg) { base.ProcessCommand(cmd, arg); } #endregion public enum WaitFormCommand { } } }
Form1
private void simpleButton1_Click(object sender, EventArgs e) { //Show indicator SplashScreenManager.ShowForm(this, typeof(frmWaitForm), true, true, false); SplashScreenManager.Default.SetWaitFormCaption("Processing data..."); for (int i = 0; i < 100; i++) { //Add your code here Thread.Sleep(10);//Only for demo } SplashScreenManager.CloseForm(); }
VIDEO TUTORIALS
- How to Clear content in RichEditControl
- How to use CheckedComboBoxEdit with SearchControl in C#
- How to Create a Radial Menu in C#
- How to Create a Fluent Design Form in C#
- DevExpress: Components Project Converter
- DevExpress: Download & Install
- DevExpress: Ribbon Control in C#
- DevExpress: Splash Screen in C#
Categories
Popular Posts
How to implement Jint in C#
09/14/2024
How to Download Chromedriver for Selenium
09/14/2024
C# Tutorial
07/20/2024