This code runs under a command button:
Private Sub cmdResultaatTicketVerkooplijnVerwijderen_Click()
If MSFlexGridTicketResultaat.Rows > 2 Then
MSFlexGridTicketResultaat.RemoveItem (MSFlexGridTicketResultaat.Row)
MSFlexGridTicketResultaat_opbouwen
Else
cmdResultaatLeegmaken_Click
End If
MSFlexGridTicketResultaat.HighLight = flexHighlightNever
cmdResultaatTicketVerkooplijnVerwijderen.Enabled = False
End Sub
When clicking the CommandButton, this code isn't even executed. I put a breakpoint and the programm doesn't even proceed any of that code!
In my Form_Keypress, I have the following code (the Form KeyPreview is set to True):
Private Sub Form_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case Asc("V", Asc("v"
KeyAscii = 0
If cmdResultaatTicketVerkooplijnVerwijderen.Enabled Then
cmdResultaatTicketVerkooplijnVerwijderen_Click
End If
End Select
End Sub
When pushing the "V", the code is then executed correctly!
How is this possible???
Many thanks for your kind help,
Michel
Private Sub cmdResultaatTicketVerkooplijnVerwijderen_Click()
If MSFlexGridTicketResultaat.Rows > 2 Then
MSFlexGridTicketResultaat.RemoveItem (MSFlexGridTicketResultaat.Row)
MSFlexGridTicketResultaat_opbouwen
Else
cmdResultaatLeegmaken_Click
End If
MSFlexGridTicketResultaat.HighLight = flexHighlightNever
cmdResultaatTicketVerkooplijnVerwijderen.Enabled = False
End Sub
When clicking the CommandButton, this code isn't even executed. I put a breakpoint and the programm doesn't even proceed any of that code!
In my Form_Keypress, I have the following code (the Form KeyPreview is set to True):
Private Sub Form_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case Asc("V", Asc("v"
KeyAscii = 0
If cmdResultaatTicketVerkooplijnVerwijderen.Enabled Then
cmdResultaatTicketVerkooplijnVerwijderen_Click
End If
End Select
End Sub
When pushing the "V", the code is then executed correctly!
How is this possible???
Many thanks for your kind help,
Michel