By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,512 Members | 1,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,512 IT Pros & Developers. It's quick & easy.

Tab control pages

P: n/a
I have a tab control. How can I check in an if statement which page in the
tab control is currently open or visible?
I tried using TabCtl.TabIndex, but that always returns 0 no matter which tab
I'm on.
Thanks
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nevermind...I tried using TabPageName.Visible and it worked.
"Enterprise" <so*****@microsoft.com> wrote in message
news:vN*****************@newsread1.news.pas.earthl ink.net...
I have a tab control. How can I check in an if statement which page in the
tab control is currently open or visible?
I tried using TabCtl.TabIndex, but that always returns 0 no matter which tab I'm on.
Thanks

Nov 13 '05 #2

P: n/a
"Enterprise" <so*****@microsoft.com> wrote in message
news:vN*****************@newsread1.news.pas.earthl ink.net...
I have a tab control. How can I check in an if statement which page in the
tab control is currently open or visible?
I tried using TabCtl.TabIndex, but that always returns 0 no matter which tab I'm on.
Thanks

Use the Value property (zero-based index)
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.