473,499 Members | 1,808 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 4794
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.pl> 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.focused

then move to text control?

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

Użytkownik "Chris" <No****@NoSpam.com> napisał w wiadomo¶ci
news:e1**************@TK2MSFTNGP14.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.pl> 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.pl> wrote in message
news:d1**********@inews.gazeta.pl...
If e.KeyCode = Keys.Tab and dgrPaczki.focused

then move to text control?

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

Użytkownik "Chris" <No****@NoSpam.com> napisał w wiadomo¶ci
news:e1**************@TK2MSFTNGP14.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.pl> 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
7597
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...
2
2920
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
4223
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
6239
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...
8
1978
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...
11
3202
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...
21
2648
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 /...
4
3900
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...
6
1988
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,...
1
5785
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...
0
7007
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...
0
7220
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...
0
7388
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...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3099
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...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.