473,748 Members | 10,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Left and Right arrows

Hi,
In recently recieved some excellent advice which ebnabled me to make a form
behave as a spreadsheet with respect to the down and up arrow keys. To
develop this further I would like the right and left arrow to move to the
next or previous tab control. DoCmd.GotoRecor d,,AcNext does the business
for down, but nowhere can I find a 'docmd go to next tab' or words to that
effect!!!

Any ideas?
Nov 13 '05 #1
1 4266
Hum, I assume when you say "tab", you are talking about a tab control?

I would not take away the left/right arrow keys...as then how can a user
edit data in a field? They need the arrow keys to move within that field. If
the whole field is highlighted when the cursor enters..then you can normally
use the left/right arrows to move to the next/previously control (is this
what you are asking for now???). However, if a users is actually
typing/editing data in a control..then they need the left right arrow keys
for editing.

I don't think it is a very good idea to steal those keys, as then how can a
user edit text in a field?

You can usually hit ctrl-TAB to jump to the next tab. Also, perhaps
ctrl-right arrow, and ctrl-left arrow might be a possible keys to use..but I
can't see stealing the left/right arrow keys.

To steal the ctrl-right/ and left key, you can add the following code to
your keydown handler:

Dim intTabCount As Integer
Const TabMax As Integer = 1 ' max number of tabs
(less 1, since this is zero based)

If (Shift And acCtrlMask) > 0 Then
Select Case KeyCode

Case vbKeyRight
KeyCode = 0
intTabCount = Me.TabCtl18 + 1
If intTabCount > TabMax Then
intTabCount = 0
End If
Me.TabCtl18 = intTabCount

Case vbKeyLeft
KeyCode = 0
intTabCount = Me.TabCtl18 - 1
If intTabCount < 0 Then
intTabCount = TabMax
End If
Me.TabCtl18 = intTabCount
End Select
End If
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
http://www.attcanada.net/~kallal.msn
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2035
by: HikksNotAtHome | last post by:
This page displays as I want it to (for the way its coded). http://members.aol.com/hikksnotathome/hideAndShowDivs/index.html When I try to move the Up/Down Arrow over to the right, as in this page: http://members.aol.com/hikksnotathome/hideAndShowDivs/testPage.html IE6 and Opera7 display it as I want it.
0
1347
by: Bamse | last post by:
Hello! is there a way to enable individual arrows in DomainUpDown Control? i want to disable up/down arrows when the current item in the control reaches certain value. Thank you, Daniel
1
1892
by: jrhoads23 | last post by:
Hello, I subclassed my own ListView which supports column sorting. It automatically draws the up/down sort arrows in the column header. The arrows that are used are drawn by me. I noticed that Windows XP systems uses different sort arrows than Windows 2000 and earlier systems. (open Windows Explorer and check them out on the two differnt O/S) I would like my ListView to use the same arrows as the operating system uses. Is there an API...
1
1686
by: Gidi | last post by:
Hi, I have DataGrid and i want to use the arrows to navigate up and down between the lines. i also want that each row i'm in, will be marked (as in DataGrid.Select(row_number)). When my form is loaded, my focus is on a textbox i have, and what i want to do is that if i press the arrows keys the focus will be on the dataGrid (on the next row) and while i'll navigate with arrows, the row i will be in will be totaly marked. how can i do...
2
10337
by: kalp suth via DotNetMonster.com | last post by:
I want to create arrows using lines on a picture in the picture box. On clicking the button "btnShowAll", the image is loaded and the lines drawn. "RGSShowAll()" calls "DrawObjs()" which does the actual drawing work. But after displaying all the arrows in a flick, the arrows disappers. I have debugged and came to know that the "Paint" event of the picturebox is refreshing the image, so the work done on the CreateGraphics created object is...
2
2533
by: Notgiven | last post by:
Assuming I find some code that allows you to drag graphics around the page, ideally, I want the relationship between two graphics to be displayed as linked arrows. For example (imagine this in graphical form): icon1 <----------> icon2 Then the user can drag icon1 around the page and the arrow will still be "connected" to to both. How would you go about doing something like that?
1
9348
by: neoswf | last post by:
hi all i have this function: -- function userNameValidChars(e) { if (!e) var e = window.event; if (e.keyCode) key = e.keyCode; else if (e.which) key = e.which; if(!(key==37) && !(key==39)) return false; return true;
8
1907
by: Doron Farber | last post by:
Hi All, How can I Move the Server explorer window to the left. When ever I double click on the Server explorer top window it goes to the bottom of the IDE. Thanks, Doron
9
14685
by: Glenton | last post by:
Hi All I've been knocking my head against this, and wondered if anyone had any insights. I've made a plot with the wonderful matplotlib. I've always found it to work brilliantly, and I've found that even without knowing much about it I can get it to do most of the things I've wanted it to do. Today, I wanted to insert a few arrows onto my graphs to point out some features. They didn't need any text or other annotation. Just the...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.