Print Page | Close Window

How to edit items using cursor keys

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15809
Printed Date: 15 November 2024 at 6:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to edit items using cursor keys
Posted By: Nemesys
Subject: How to edit items using cursor keys
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net