-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSelectVendor.vb
More file actions
18 lines (18 loc) · 904 Bytes
/
SelectVendor.vb
File metadata and controls
18 lines (18 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Public Class SelectVendorWindow
Public NewVendorSelected As String = ""
Private Sub SelectVendor_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
NewVendorSelected = ""
End Sub
Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
If e.RowIndex < 0 OrElse Not e.ColumnIndex = DataGridView1.Columns(0).Index Then Return
Dim v As String = DataGridView1(1, e.RowIndex).Value
'SelectedVendor = v
NewVendorSelected = v
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Private Sub CancelButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CancelButton.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
End Class