Connecting Tech Pros Worldwide Help | Site Map

How to identify TabControl index?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 06:05 AM
deko
Guest
 
Posts: n/a
Default How to identify TabControl index?

Private Sub tabTools_Change()
Debug.Print Me.tabTools.Pages.Item(0)
End Sub

This always prints 0. How do I get the Tab/Page that is clicked, or better
yet, that is currently active?

Thanks in advance.



  #2  
Old November 13th, 2005, 06:05 AM
(Pete Cresswell)
Guest
 
Posts: n/a
Default Re: How to identify TabControl index?

Per deko:[color=blue]
>This always prints 0. How do I get the Tab/Page that is clicked, or better
>yet, that is currently active?[/color]

myTabControl.Value.

It's zero-based.
--
PeteCresswell
  #3  
Old November 13th, 2005, 06:05 AM
Darryl Kerkeslager
Guest
 
Posts: n/a
Default Re: How to identify TabControl index?

Umm, of course, when you post this twice you get two replies ..

It appears that I should have read bottom to top this time ..

Darryl Kerkeslager

"deko" <www.clearpointsystems.com@use_contact_form.com> wrote:[color=blue]
> Private Sub tabTools_Change()
> Debug.Print Me.tabTools.Pages.Item(0)
> End Sub
>
> This always prints 0. How do I get the Tab/Page that is clicked, or[/color]
better[color=blue]
> yet, that is currently active?
>
> Thanks in advance.
>
>[/color]


  #4  
Old November 13th, 2005, 06:06 AM
deko
Guest
 
Posts: n/a
Default Re: How to identify TabControl index?

> myTabControl.Value.

That's the ticket! Thanks!


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.