This is the code i have for closing my app. the second sub is for an exit button in a context menu.
when the app closes either by, windows closing it, clicking the "X", or using the context menu, i get a close confirmation. I would like to not get this confirmation every time i shutdown windows.
also how can i make this app a service?
thanks
mike
2007-01-18
06:45:15
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
Private Sub ChangeCase_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
uninitiatehotkey()
NotifyIcon1.Visible = False
Dim result As MsgBoxResult
result = MessageBox.Show("Do you really want to quit?", "Quit?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If result = MsgBoxResult.No Then
e.Cancel = True
End If
End Sub
Private Sub CloseApp(ByVal e As System.Windows.Forms.FormClosingEventArgs)
uninitiatehotkey()
NotifyIcon1.Visible = False
Dim result As MsgBoxResult
result = MessageBox.Show("Do you really want to quit?", "Quit?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If result = MsgBoxResult.No Then
e.Cancel = True
End If
Application.Exit()
End Sub
2007-01-18
06:45:52 ·
update #1