I have an editable listbox cell that triggers a messagedialog to allow the cell to be re-edited on loss of focus - see below. But the EditCellAt function doesn’t open the text for editing. If I call editCellAt from a button, it works fine. Any ideas?
Sub CellLostFocus(row as Integer, column as Integer) Handles CellLostFocus
Dim dlg As New MessageDialog
dlg.message = “edit or delete?”
dlg.ActionButton.Caption = “Edit”
dlg.AlternateActionButton.Caption = “Delete”
dlg.AlternateActionButton.Visible = True
dlg.CancelButton.Visible = False
Dim btn As MessageDialogButton = dlg.ShowModal
Select Case btn
Case dlg.ActionButton
Me.EditCellAt(row, column)
Case dlg.AlternateActionButton
Me.CellValueAt(row, column) = ""
Else
End Select
End Sub