How can i detect the arrow key on the FlexGrid object, I had try using the KeyDown event, but this event doesn't respond with the arrow key pressed.

Re: arrow key detection on msflexgrid 80 80

Hi,

Write this Code in KeyUp Event of grid control :

If KeyCode = vbKeyUp Then
   msgbox "UpArrow Pressed"
ElseIf KeyCode = vbKeyUp Then
   msgbox "Down Arrow Pressed"
End If

REgards
Veena

Re: arrow key detection on msflexgrid 80 80

hi veena,
that code doesnt work on msflexgrid.. i tried that.... UP,DOWN ,RIGHT and LEFT keys are not detecting on Msflexgrid..
is there any other way to detect them

Hi,

Write this Code in KeyUp Event of grid control :

If KeyCode = vbKeyUp Then
   msgbox "UpArrow Pressed"
ElseIf KeyCode = vbKeyUp Then
   msgbox "Down Arrow Pressed"
End If

REgards
Veena

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.