Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Setting selected item in TabControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting selected item in TabControl

 Post Reply Post Reply
Author
Message
Spyder View Drop Down
Newbie
Newbie


Joined: 17 November 2004
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Spyder Quote  Post ReplyReply Direct Link To This Post Topic: Setting selected item in TabControl
    Posted: 25 November 2004 at 1:20am
Is there any way to set the active tab in a TabControl?

For my application to be 508 compliant I need a way to change tabs through a menu so that everything can be done via the keyboard.

This is also important because tabs in my application are used for changing views of data; this means I perform validation when tabs are switched and if there is an error I need to be able to force the user to stay on the current tab.

Edited by Spyder
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2004 at 7:35pm
How about:

TabControl.Item(i).Selected = True

where "i" is the index of the tab you want to set as active.
Back to Top
Spyder View Drop Down
Newbie
Newbie


Joined: 17 November 2004
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Spyder Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2004 at 7:59pm
*smacks head*

I'm sure I read that as a read-only property when I was looking it up yesterday...


Thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.