The TabPage click event fires when you click on a blank area of the page that is
already "on top", not when you click on the tabs to change pages.
The TabControl's Change event does fire when you change tab pages. If what you
want to do is dependent on which tab page was changed to, then you need to test
the Value property of the TabControl. This will return the index of the Tab
Page that was selected.
Select Case Me!TabControlName.Value
Case 0
'page one of the TabControl was selected.
Case 1
'page two of the TabControl was selected.
etc..
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.