-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDispenser.vb
27 lines (22 loc) · 1013 Bytes
/
Dispenser.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
Public Class DispensingPleaseWait
Private Sub DispensingPleaseWait_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
ProgressBar1.Value = 0
O.Enabled = True
My.Computer.Audio.Play(My.Resources.UserFOlder, AudioPlayMode.Background)
End Sub
Private Sub O_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles O.Tick
If Not ProgressBar1.Value = 100 Then
ProgressBar1.Value = ProgressBar1.Value + 10
Else
O.Enabled = False
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Asterisk)
If Me.Visible = True Then
MessageBox.Show("Lovely", "MMM")
My.Computer.Audio.Play(My.Resources.MMM, AudioPlayMode.WaitToComplete)
Me.Close()
End If
End If
End Sub
Private Sub DispensingPleaseWait_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class