Hi there,
I have managed to create and code a file menu exit with the following code, however I just can't seem to find out how I am able to edit the red X in the top right hand side of the form next to the minimise and maximise buttons?
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
Dim close As String
close = MessageBox.Show("Are you sure you want to exit?", "Exit Log Book", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If close = 6 Then
Me.Close()
Application.Exit()
Else
txtOdoStart.Focus()
End If
End Sub
Many thanks,
Bill
I have managed to create and code a file menu exit with the following code, however I just can't seem to find out how I am able to edit the red X in the top right hand side of the form next to the minimise and maximise buttons?
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
Dim close As String
close = MessageBox.Show("Are you sure you want to exit?", "Exit Log Book", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If close = 6 Then
Me.Close()
Application.Exit()
Else
txtOdoStart.Focus()
End If
End Sub
Many thanks,
Bill