Dear all,
I am trying to program a dialogue box to appear when the exit button from my 'Login' form is clicked.
The form has three options; yes, no, cancel.
The code so far:
The dialogue box is the form called 'DBexit'
It shows the dialogue box but I am not sure how to proceed to code the buttons from another form into the 'Login' form as the buttons 'yes', 'no' and 'cancel' have not been declared.
Thank you for your time and help.
I am trying to program a dialogue box to appear when the exit button from my 'Login' form is clicked.
The form has three options; yes, no, cancel.
The code so far:
Code:
' Cancel button
Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox4.Click
Dim mainForm As New DBexit
DBexit.Show()
If yes.click = True Then
End If
End Sub
It shows the dialogue box but I am not sure how to proceed to code the buttons from another form into the 'Login' form as the buttons 'yes', 'no' and 'cancel' have not been declared.
Thank you for your time and help.
Comment