-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.vb
30 lines (25 loc) · 954 Bytes
/
Form1.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Imports System
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports DevExpress.XtraSplashScreen
Imports System.Threading
Namespace WaitForm_SetDescription
Public Partial Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub btnShowWaitForm_Click(ByVal sender As Object, ByVal e As EventArgs)
'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
Call SplashScreenManager.Default.SetWaitFormDescription(i.ToString() & "%")
Thread.Sleep(25)
Next
'Close Wait Form
SplashScreenManager.CloseForm(False)
End Sub
End Class
End Namespace