Solved

Selecting a TabSheet with keyboard

Posted on 1998-11-09
3
297 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 139
Controlled Assessment GCSE - desperate help needed 4 75
Base1 Encode/Decode 3 67
Firemonkey webbrowser scrollbars ? 1 29
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now