-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathfileDlg.vb
More file actions
102 lines (90 loc) · 3.65 KB
/
fileDlg.vb
File metadata and controls
102 lines (90 loc) · 3.65 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Public Class FileExistsDialog
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents btnResume As System.Windows.Forms.Button
Friend WithEvents btnReplace As System.Windows.Forms.Button
Friend WithEvents lblCaption As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.btnCancel = New System.Windows.Forms.Button()
Me.btnResume = New System.Windows.Forms.Button()
Me.btnReplace = New System.Windows.Forms.Button()
Me.lblCaption = New System.Windows.Forms.Label()
Me.SuspendLayout()
'
'btnCancel
'
Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.btnCancel.Location = New System.Drawing.Point(267, 72)
Me.btnCancel.Name = "btnCancel"
Me.btnCancel.Size = New System.Drawing.Size(75, 23)
Me.btnCancel.TabIndex = 7
Me.btnCancel.Text = "Cancel"
'
'btnResume
'
Me.btnResume.DialogResult = System.Windows.Forms.DialogResult.No
Me.btnResume.Location = New System.Drawing.Point(107, 72)
Me.btnResume.Name = "btnResume"
Me.btnResume.Size = New System.Drawing.Size(75, 23)
Me.btnResume.TabIndex = 6
Me.btnResume.Text = "Resume"
'
'btnReplace
'
Me.btnReplace.DialogResult = System.Windows.Forms.DialogResult.Yes
Me.btnReplace.Location = New System.Drawing.Point(19, 72)
Me.btnReplace.Name = "btnReplace"
Me.btnReplace.Size = New System.Drawing.Size(75, 23)
Me.btnReplace.TabIndex = 5
Me.btnReplace.Text = "Replace"
'
'lblCaption
'
Me.lblCaption.Location = New System.Drawing.Point(19, 16)
Me.lblCaption.Name = "lblCaption"
Me.lblCaption.Size = New System.Drawing.Size(320, 48)
Me.lblCaption.TabIndex = 4
Me.lblCaption.Text = "label1"
'
'FileExistsDialog
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(360, 110)
Me.Controls.Add(Me.btnCancel)
Me.Controls.Add(Me.btnResume)
Me.Controls.Add(Me.btnReplace)
Me.Controls.Add(Me.lblCaption)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Name = "FileExistsDialog"
Me.ShowInTaskbar = False
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
Me.Text = "File Exists Dialog"
Me.ResumeLayout(False)
End Sub
#End Region
Public Function ShowFileDialog(ByVal fileName As String) As DialogResult
lblCaption.Text = String.Format("File already exists {0}", fileName)
Return ShowDialog()
End Function
End Class