I've been coding all day and my mind is probably a bit tangled up as I am suffering a blind spot. In the old days we would use a modal Msgbox2 to block a close request event until the user decides and closes the dialog..
In the brave new world of Msgbox2Async how do we achieve the same thing? Can we achieve the same thing?
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event If KeyCode = KeyCodes.KEYCODE_BACK Then Dim res As String = Msgbox2("Do you really want to exit?", "", "Yes", "", "No", Null) If Not(res = DialogResponse.POSITIVE) Then Return True CheckSave End If Return False End Sub