Solved

Set focus to first control on SSTab control

Posted on 2002-04-30
3
334 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank You

Svetlana2k
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

772 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

15 Experts available now in Live!

Get 1:1 Help Now