Print Page | Close Window

Is it possible to tab between cells?

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=5636
Printed Date: 19 September 2024 at 1:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Is it possible to tab between cells?
Posted By: RobinG
Subject: Is it possible to tab between cells?
Date Posted: 29 November 2006 at 9:03am
I have a reportcontrol which I'm using as an editable grid - Is it possible to use the tab key to advance onto the next "cell"?
 
Prior to the edit begining it is possible to intercept key strokes via KeyDown() events, but once the edit begins I cant seem to find a way of getting notifications...
 
Any ideas?
 



Replies:
Posted By: sserge
Date Posted: 01 December 2006 at 5:21pm
Something like:

Private Sub wndReportControl_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)
    If KeyCode = vbKeyTab Then
        wndReportControl.Navigator.MoveRight
    End If
End Sub

should help...

--
WBR,
Serge


Posted By: RobinG
Date Posted: 02 December 2006 at 11:16am
Serge,
 
Thanks for the tip!


Posted By: RobinG
Date Posted: 04 December 2006 at 5:07am
Just as a followup.... I was using 9.81 which did not have the KeyDownPreview event, so i finally I made the switch to 10.3.1
 
Once using 10.3.1, I found that pressing the tab key never caused the event to fire - the report control just lost focus when it was pressed.
 
I managed to get the event to fire for TAB by setting the "TabStop" property for the other controls on my form to false (I only had 2 so no problem there!) - now I can detect the tab key and move to the next cell.
 



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