Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - How to edit items using cursor keys
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to edit items using cursor keys

 Post Reply Post Reply
Author
Message
Nemesys View Drop Down
Newbie
Newbie


Joined: 09 December 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nemesys Quote  Post ReplyReply Direct Link To This Post Topic: How to edit items using cursor keys
    Posted: 09 December 2009 at 10:49am
Hi all,
 
I've a program developed under VB6. It uses Reportcontrol to show/edit data, but the only way to edit a item is clicking once with mouse. There is a way to edit reportcontrol using the cursor keys to navigate across the items of the selected row?
 
I've tried using the following code:
 
Private Sub REPORTCONTROL_KeyDown(KeyCode As Integer, Shift As Integer)
If REPORTCONTROL.SelectedRows.count = 0 Then Exit Sub
If KeyCode <> 40 And KeyCode <> 39 And KeyCode <> 38 And KeyCode <> 37 Then
    REPORTCONTROL.EditItem REPORTCONTROL.SelectedRows(0), REPORTCONTROL.Columns(1)
End If
End Sub
 
The problem is that when the user press the key only can edit the item of the column 1.
 
Thanks in advance.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.171 seconds.