Solved

Set focus to first control on SSTab control

Posted on 2002-04-30
3
350 Views
Last Modified: 2012-06-27
How do I set focus to the first control on each tab of an SSTab control as I click from one tab to another. There is only click event of the SSTab

Svetlana2k
0
Comment
Question by:svetlana2k
3 Comments
 
LVL 1

Expert Comment

by:manno
ID: 6979986
The Tab property tells you which Tab they just clicked.

Also the Click event tells you which one they left.

You could assign the Tab number to the Tag property of the required 'top left' controls and cycle through.
0
 
LVL 5

Accepted Solution

by:
hafeezmca earned 50 total points
ID: 6980000
Hello svetlana.
  Here is the solution for ur query.
 
Private Sub SSTab1_Click(PreviousTab As Integer)
If SSTab1.Tab = 0 Then
    itemname.SetFocus
End If
'similary repeat the above procedure for as many          
 'tabs using a nested if loop.
End Sub
0
 

Author Comment

by:svetlana2k
ID: 6980083
Thank You

Svetlana2k
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 73
Determine Range to Select 5 52
Passing a Text Box name to a Sub 6 99
add criteria to query in VB, Access 2003 2 9
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

860 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