-
Notifications
You must be signed in to change notification settings - Fork 3
/
dialogPopup.vb
30 lines (27 loc) · 1.03 KB
/
dialogPopup.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
Imports System.Windows.Forms
Public Class dialogPopup
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub
Dim frmParent As Form = Nothing
Public Sub setParent(ByRef frm As Form)
frmParent = frm
End Sub
Dim frmLink As clsLinks.Link
Public Sub setLink(ByRef lnk As clsLinks.Link)
frmLink = lnk
End Sub
Public Sub setPopupText(strPopupText As String)
txtPopupText.Text = strPopupText
End Sub
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.Close()
End Sub
End Class