winformui怎么做界面美化(应用界面表单美化)

获取DevExpress完整版下载:https://www.evget.com/product/740/download,今天小编就来聊一聊关于winformui怎么做界面美化?接下来我们就一起去研究一下吧!

winformui怎么做界面美化(应用界面表单美化)

winformui怎么做界面美化

获取DevExpress完整版下载:https://www.evget.com/product/740/download

启动屏幕管理器在单独的线程中显示Wait Form,若要在显示Wait Form时动态更改标签,请使用SplashScreenManager.SetWaitFormCaption和SetWaitFormDescription方法。

注意:完成的示例项目位于https://github.com/DevExpress-Examples/how-to-dynamically-change-a-wait-forms-labels-e3575。

Form1.cs

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; using DevExpress.XtraSplashScreen; using System.Threading; namespace WaitForm_SetDescription { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnShowWaitForm_Click(object sender, EventArgs e) { //Open Wait Form SplashScreenManager.ShowForm(this, typeof(WaitForm1), true, true, false); //The Wait Form is opened in a separate thread. To change its Description, use the SetWaitFormDescription method. for (int i = 1; i <= 100; i ) { SplashScreenManager.Default.SetWaitFormDescription(i.ToString() "%"); Thread.Sleep(25); } //Close Wait Form SplashScreenManager.CloseForm(false); } } }

Form1.vb

Imports Microsoft.VisualBasic Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Linq Imports System.Text Imports System.Windows.Forms Imports DevExpress.XtraSplashScreen Imports System.Threading Namespace WaitForm_SetDescription Partial Public Class Form1 Inherits Form Public Sub New() InitializeComponent() End Sub Private Sub btnShowWaitForm_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnShowWaitForm.Click 'Open Wait Form SplashScreenManager.ShowForm(Me, GetType(WaitForm1), True, True, False) 'The Wait Form is opened in a separate thread. To change its Description, use the SetWaitFormDescription method. For i As Integer = 1 To 100 SplashScreenManager.Default.SetWaitFormDescription(i.ToString() & "%") Thread.Sleep(25) Next i 'Close Wait Form SplashScreenManager.CloseForm(False) End Sub End Class End Namespace


,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页