I am trying to construct a row deletion routine for my datagrid. The user selects a row for deletion, this highlights the row and the user is requested to 'Confirm Deletion'. After clicking a suitable response from the msgbox2 message box there is a long delay followed by a system message that complains that my application is not responding.
Upon clicking the system message wait option the program comes back to life again. The routine below shows how I am using Msgbox2 - can anyone suggest why I am getting this problem (or is this a msgbox2 bug).
'Confirm request to delete a datagrid row -----------------------------------
Select Msgbox2("Delete this appliance - are you sure", "Please confirm Deletion","Yes","","No",Null)
Case DialogResponse.NEGATIVE
WriteGridData 'refresh datagrid
Case DialogResponse.POSITIVE
eqptcursor.Position = RowNo 'Set the cursor to the row being editted
Dim myID As Int
myId = eqptCursor.GetInt ("_Id")
SQL1.ExecNonQuery("Delete from Equipment where _Id = " & myId)
EqptCursorRefresh
WriteGridData 'refresh datagrid
End Select
'--------------------------------------------------------------------------
:sign0104: