473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to programmatically focus to next control in tabIndex order?

Dear all,

How can I programmatically focus to next control in a form by tabIndex order?

Tedmond
Mar 17 '06 #1
2 7895
Hi Tedmond,

The Control class has a GetNextControl method that will return the next or
previous control in the tab order list.

On Fri, 17 Mar 2006 08:45:06 +0100, Tedmond
<Te*****@discussions.microsoft.com> wrote:
Dear all,

How can I programmatically focus to next control in a form by tabIndex
order?

Tedmond


--
Happy Coding!
Morten Wennevik [C# MVP]
Mar 17 '06 #2
You can use the SelectNextControl method.
http://msdn.microsoft.com/library/de...ntroltopic.asp

--
Tim Wilson
..NET Compact Framework MVP

"Tedmond" <Te*****@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
Dear all,

How can I programmatically focus to next control in a form by tabIndex order?
Tedmond

Mar 17 '06 #3

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

Similar topics

1
by: Robert Mark Bram | last post by:
Hi All, >From an event handler attached to a control that has a tab index, is it possible to find the next control in the tab order - and then focus() on it? I am having a bit of trouble with...
2
by: orekinbck | last post by:
Hi There I need to write a function that accepts a C# windows form as a parameter, then works out what control has the focus, and then gives focus to the next control in the tab order. Any...
2
by: Mad Scientist Jr | last post by:
I have autopostback turned on for Textbox1. When the user tabs out of it, the codebehind recalculates some other fields based on its value, and the user should be able to start typing a value in...
2
by: Peter Proost | last post by:
Hi group, I want to verify if my problem also happens with other people, place a radiobutton, two textboxes, and a button on a form then copy paste this code run the prog and press enter on the...
4
by: chreo | last post by:
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...
4
by: Vayse | last post by:
I have a text box, with a command button next to it. When the button is pressed, I want to run some code. Then pass the focus to the next control. How do I do this? Thanks Vayse
4
by: Benson | last post by:
I want to use code to move focus from the current control to the next control (don't know the control name). Example, there are texbox A and B, and a button. The current focus is on A. When I...
2
by: cvijaykrishna | last post by:
i have a windows based application which contains textboxes when i press enter in one textbox then focus should go to next textbox i dont want to hard code like ex: textbox3.focus but i want to...
0
nev
by: nev | last post by:
How can I determine the next control the user clicks on a certain control's validating event? For example, if I have textbox1 with the focus, and I click textbox2, how can I know from textbox1 that...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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
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...

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.