H
Harry Simpson
I want to show a message box and when the user clicks ok exit the application:
If Not g_blnLocalDBExists Then 'Go ahead and shut the app down after the user closes out the message box
Dim result As New MsgBoxResult
result = MsgBox("No local database. Place PPC back in the cradle.", MsgBoxStyle.OKCancel + MsgBoxStyle.Critical, "No Data")
Select Case result
Case MsgBoxResult.OK
Application.Exit()
Case MsgBoxResult.Cancel
Application.Exit()
End Select
This particular snippet actually just hangs the app completely - clicking OK on the messagebox takes but nothing else can be clicked again....
What am i missing.
TIA
Harry
If Not g_blnLocalDBExists Then 'Go ahead and shut the app down after the user closes out the message box
Dim result As New MsgBoxResult
result = MsgBox("No local database. Place PPC back in the cradle.", MsgBoxStyle.OKCancel + MsgBoxStyle.Critical, "No Data")
Select Case result
Case MsgBoxResult.OK
Application.Exit()
Case MsgBoxResult.Cancel
Application.Exit()
End Select
This particular snippet actually just hangs the app completely - clicking OK on the messagebox takes but nothing else can be clicked again....
What am i missing.
TIA
Harry