有趣生活

当前位置:首页>科技>winformui怎么做界面美化应用界面表单美化

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

发布时间:2026-07-21阅读(1)

导读获取DevExpress完整版下载:https://www.evget.com/product/740/download,今天小编就来聊一聊关于winfor....

获取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 FormSplashScreenManager.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 FormSplashScreenManager.CloseForm(false);}}}

Form1.vb

Imports Microsoft.VisualBasicImports SystemImports System.Collections.GenericImports System.ComponentModelImports System.DataImports System.DrawingImports System.LinqImports System.TextImports System.Windows.FormsImports DevExpress.XtraSplashScreenImports System.ThreadingNamespace WaitForm_SetDescriptionPartial Public Class Form1Inherits FormPublic Sub New()InitializeComponent()End SubPrivate Sub btnShowWaitForm_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnShowWaitForm.ClickOpen Wait FormSplashScreenManager.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 100SplashScreenManager.Default.SetWaitFormDescription(i.ToString() & "%")Thread.Sleep(25)Next iClose Wait FormSplashScreenManager.CloseForm(False)End SubEnd ClassEnd Namespace


,
TAGS标签:  winformui  怎么  界面  美化  应用  winformui怎

Copyright © 2024 有趣生活 All Rights Reserve吉ICP备19000289号-5 TXT地图HTML地图XML地图