473,803 Members | 3,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I Want TAB-key to out of datagrid and go to next control

I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(
Nov 21 '05 #1
4 4808
I think this should do the trick.

1. Set the Form.Keypreview to true
2. Capture the Tab key in the keypress event of the form.
3. If Tab key pressed and DataGrid has focus, move the next control.

There is a way to move the next control in the tab order using a function,
but I can't recall what it is off the top of my head. Hope this helps.

Chris
"chreo" <ch***@gazeta.p l> wrote in message
news:d1******** **@inews.gazeta .pl...
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(

Nov 21 '05 #2
If e.KeyCode = Keys.Tab and dgrPaczki.focus ed

then move to text control?

But...datagrid. focused is error : -(

Użytkownik "Chris" <No****@NoSpam. com> napisał w wiadomości
news:e1******** ******@TK2MSFTN GP14.phx.gbl...
I think this should do the trick.

1. Set the Form.Keypreview to true
2. Capture the Tab key in the keypress event of the form.
3. If Tab key pressed and DataGrid has focus, move the next control.

There is a way to move the next control in the tab order using a function,
but I can't recall what it is off the top of my head. Hope this helps.

Chris
"chreo" <ch***@gazeta.p l> wrote in message
news:d1******** **@inews.gazeta .pl...
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(


Nov 21 '05 #3
:-(
How is it posiible that since so many years nobody found out how to use
datagrid like...for example listbox.

TAB ---> I am in datagrid
UP,DOWN ---> Move beteween rows (full row selected)
TAB ---> Leave datagrid and go to next control

Sounds easy but nobody can solve that problem.
I found some solution to select full row (by mouse and by arrows UP, DOWN)
But no solution to leave datagrid with TAB.
TAB leaves current cell and go to next cell in datagrid but
I want that key to leave datagrid!!! wrrrrr... :)
Nov 21 '05 #4
isn't it dgrPaczki.focus not focused?

Chris
"chreo" <ch***@gazeta.p l> wrote in message
news:d1******** **@inews.gazeta .pl...
If e.KeyCode = Keys.Tab and dgrPaczki.focus ed

then move to text control?

But...datagrid. focused is error : -(

Użytkownik "Chris" <No****@NoSpam. com> napisał w wiadomości
news:e1******** ******@TK2MSFTN GP14.phx.gbl...
I think this should do the trick.

1. Set the Form.Keypreview to true
2. Capture the Tab key in the keypress event of the form.
3. If Tab key pressed and DataGrid has focus, move the next control.

There is a way to move the next control in the tab order using a
function, but I can't recall what it is off the top of my head. Hope
this helps.

Chris
"chreo" <ch***@gazeta.p l> wrote in message
news:d1******** **@inews.gazeta .pl...
I assume that it is not hard problem.

I would like user to only click in datagrid to select whole row - DONE
I would like user to select whole row using UP and DOWN arrows. - DONE.

And I would like to move to the next control with TAB key!
TAB key in datagrid moves between colums...
I don't TAB do change colums - I want TAB to move to next control - or
previous with SHIFT+TAB...

I think it is not easy problem :(



Nov 21 '05 #5

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

Similar topics

147
7792
by: Sateesh | last post by:
Hi, I am a beginner in Python, and am wondering what is it about the indentation in Python, without which python scripts do not work properly. Why can't the indentation not so strict so as to give better freedom to the user? Is there any plausible reason behind this? Cheers! Sateesh
2
2938
by: Lea | last post by:
Hi, I have difficulties in understanding the following script. If a good soul was passing by here ... Thks Lea <script language="javascript">
4
4261
by: smshahriar | last post by:
Hi, I want to scan from the following string all the hex numbers and populate an array of integers: 0x27 0x00 0x30 0x00 0x33 0x00 0x36 0x00
4
6265
by: Andre Nogueira | last post by:
hi there. I am creating a tabcontrol where the drawing of the tabs is controlled by me. However, i cannot find a way to change the lenght of the tab. For instance, "String" needs a smaller tab than a tab which text is "this is a tab with a really really long text". How can this be done, the changing of the width of the tab? Thanks! André Nogueira
8
1991
by: johkar | last post by:
I have two problems I cannot work out in the following tab code with Netscape 6. Problems are marked with all cap comments. One is that the background image is not shown in NS 6 (two places in CSS). The second problem is that the top right rounded corner is not showing up in the Tier 2 tabs. Could you have a look and tell me if it is possible to correct? This code seems to work fine in IE 5+ and Firefox. Note that since I can't post...
11
3239
by: Dave | last post by:
Access 2003 I have a main form with two tab forms, one showing Client, and the other Spouse info, each with Address tabs. When I click on the Client address tab, I would like to have the Spouses address tab show as well. Although the above is the primary issue to resolve, it would also be handy to go a step further...each Address tab has a sub-form with two tabs; Civic Address, and Mailing Address. Being able to click on the Clients...
21
2697
by: listaction | last post by:
Folks, I'm trying to implement a tabbed effect with CSS and HTML - no graphics. for some reason, i'm unable to control the width of the tabs. I've pasted the code below. Any help / pointers to resources that explain how to implement tabs
4
3920
by: bobg.rjservices | last post by:
running access 2k; adp w/ linked tables to SQL server; I am absolutely stymied, and ticked off beyond belief - I can not believe how much time I've wasted trying to do something that should be comically easy!!!!! I have 2 tables: T_people, T_calls in a 1 to many relation (many calls to each person). I have a form with tabs in it. the form is NOT attached to a record
6
2006
by: DrifterKona | last post by:
I have a form with 4 pages. I'm not sure of the correct name, but I will refer to the tabs at the top of the form that list the names of the four pages as the "page tabs". When the form opens, the body of the form automatically scrolls down to the first tab stop on the form. This causes the body of the form to scroll down so far that the page tabs are no longer viewable. That is undesirable for two reasons. First, if a user wants to...
1
5809
by: chaitanyadotcom | last post by:
As per my application i need to create tabs using iFrame dynamically. There are totally 4 buttons in my application where for each button i provide a link. Where in it will dynamically create a tab inside the iFrame. For example.. first button contains google.com second button contains yahoo.com 3rd button contains hotmail.com if i click on first button i.e google.com , tab is created and link to google.com is generated as a tab in...
0
10548
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
10316
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
10295
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
10069
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
7604
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
6842
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();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3798
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.