Solved

Selecting a TabSheet with keyboard

Posted on 1998-11-09
3
302 Views
Last Modified: 2010-04-03
Is it possible to select a TabSheet in a PageControl by using the keyboard?
Placing an underscore under a character on the TabSheet doesn't work.
0
Comment
Question by:rainbowsoftware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:dwwang
ID: 1346207
You have to use the TAB key to set the focus on the page control, and the use left/right arrow key to go through the tabsheets.

Or use MyPageControl.activePage:=myTabSheet;
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1346208
You can also use CTRL-TAB and CTRL-SHIFT-TAB when on any control in a page in a page control.

Raymond.
0
 
LVL 1

Accepted Solution

by:
rpetruni earned 50 total points
ID: 1346209
You could use onKeydown event on the form (also form has to have KeyPreview set to true).
Here is sample code
if key=VK_F2 then PageControl1.ActivePage:=TabSheet1;

0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question