I query the database on a separate thread and generate a MessageBox for the user. I want the user to stop what he's doing and respond to the MessageBox.
With my code below, the message box doesnt even pop up over the current window. The user needs to click on the taskbar to see it. How can I get it to interrupt the main thread ?
Dim Button = MessageBoxButton.YesNo
Dim icon = MessageBoxImage.Information
Dim result = MessageBox.Show("Hi", "Title", Button, icon)
Select Case result
Case MessageBoxResult.Yes
queryInProgress = 0
cashTransfer.TransactionApproved = 1
Case MessageBoxResult.No
queryInProgress = 0
cashTransfer.TransactionApproved = 0
End Select