Print Page | Close Window

Setting selected item in TabControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1457
Printed Date: 09 May 2025 at 1:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting selected item in TabControl
Posted By: Spyder
Subject: Setting selected item in TabControl
Date 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.



Replies:
Posted By: nighthawk
Date 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.


Posted By: Spyder
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net