-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmMainDelete.vb
25 lines (22 loc) · 1.14 KB
/
frmMainDelete.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
Imports System.Windows.Forms
'I've used "Yes", "No" and cancel. Note that "No" means we're deleting anyway,
'just NOT deleting the files. To cancel deletition just use Cancel
Public Class frmMainDelete
Private Sub frmMainDelete_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Me.Icon = SystemIcons.Exclamation
Dim ExclamationImage As Image = SystemIcons.Exclamation.ToBitmap
PictureBox1.Image = ExclamationImage
End Sub
Private Sub cmdIncludeFiles_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdIncludeFiles.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Yes
Me.Close()
End Sub
Private Sub cmdExcludeFiles_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExcludeFiles.Click
Me.DialogResult = System.Windows.Forms.DialogResult.No
Me.Close()
End Sub
Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
End Class