ailtom
2018-02-14T13:41:11Z
Hi, I recently bought iGrid650 ActiveX I started using it and realized that in every form I use it the escape key is no longer received by the keydown event of the form if the focus is on iGrid, even with the keypreview property as true. Is there any way around this situation? I thank everyone.
Igor/10Tec
2018-02-14T14:25:40Z
What is your development environment? Can you show your forms with iGrid and accompanying code?

I admit that there can be some problems with passing key strokes through iGrid to the form because of the low-level COM keyboard hooks needed for proper work of iGrid in specific development environments like MS Access.
ailtom
2018-02-14T15:28:54Z
hi, environmen is visual basic 6.0

the code is :

'
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then Unload Me
End Sub
'
igridform.png

this is a window where do a search for custumers
it's very simple.

has only 5 controls: 2 label. 1 textbox 1 combo box and 1 igrid control.,

load all records into igrid and in text change event do a search with l = cBusca.FindSearchMatchRow(cmbBusca.Text, bString, , True, igSearchMatchStartsWith);

if the user choose close without get any record, he simple press escape. allright. but not when igrid has the focus. but in the igrid the event keydown receiv the keycode escape. but the form not. the for has keypreview set to true.



thanks.
Igor/10Tec
2018-02-16T09:37:30Z
I investigated this issue. Yes, iGrid "eats" some keystrokes like Escape because of the aforementioned low-level COM keyboard hook used for reliable keyboard processing in all development environments including MS Access or MS Office Word/Excel VBA. You may encounter the same effect for other iGrid control keys, such as Backspace, F2 or F4.

At the moment, I see only one workaround. You need to duplicate your logic for the Escape button in iGrid's KeyDown event:


Private Sub iGrid1_KeyDown(KeyCode As Integer, Shift As Integer, bDoDefault As Boolean)
   If KeyCode = vbKeyEscape Then Unload Me
End Sub

Igor/10Tec
2019-03-15T09:17:43Z
This issue has been fixed in the iGrid v7.0.15 released today. Now there is no need to duplicate the Escape key logic in iGrid's KeyDown event handler.