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.

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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.