-
Notifications
You must be signed in to change notification settings - Fork 0
/
tc_alert.vb
30 lines (26 loc) · 1.07 KB
/
tc_alert.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
Public Class tc_alert
Private Sub tc_alert_warning_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Timer1.Enabled = False
End Sub
Private Sub tc_alert_warning_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Guna2ShadowForm1.SetShadowForm(Me)
Guna2ProgressBar1.Value = 0
Me.Icon = tc_prepare.Icon
Dim x As Integer
Dim y As Integer
x = Screen.PrimaryScreen.WorkingArea.Width
y = Screen.PrimaryScreen.WorkingArea.Height - Me.Height
Do Until x = Screen.PrimaryScreen.WorkingArea.Width - Me.Width
x = x - 1
Me.Location = New Point(x, y)
Loop
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Guna2ProgressBar1.Value += 1
If Guna2ProgressBar1.Value = 100 Then
Me.Hide()
Guna2ProgressBar1.Value = 0
Timer1.Enabled = False
End If
End Sub
End Class