How to abort a ListbBox.EditCellAt

Is there a way to cancel a ListBox.EditCellAt? (The cell has the focus and is editable)
I mean cancel it by code, not clicking anything.
Thanks for any help.

For example, this code leaves the cell when the users tries to write a period:

Function CellKeyDown(row as Integer, column as Integer, key as String) Handles CellKeyDown as Boolean
  if key="." then
    me.SetFocus
    Return True
  end if
End Function

Something like this?

3 Likes

Thanks Arnaud. This is exactly what I’m looking for. Tomorrow I will check if if works for me. But thanks anyway.

1 Like

You’re welcome. :slightly_smiling_face:

I checked it and it works! Great.

1 Like