Setting selected item in TabControl |
Post Reply |
Author | |
Spyder
Newbie Joined: 17 November 2004 Location: Australia Status: Offline Points: 29 |
Post Options
Thanks(0)
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 |
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
How about:
TabControl.Item(i).Selected = True where "i" is the index of the tab you want to set as active. |
|
Spyder
Newbie Joined: 17 November 2004 Location: Australia Status: Offline Points: 29 |
Post Options
Thanks(0)
|
*smacks head*
I'm sure I read that as a read-only property when I was looking it up yesterday... Thanks |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |