Tab Click...

  • Thread starter Thread starter wink martindale
  • Start date Start date
W

wink martindale

Hello All,

We are developing a vb.net app that utilizes a tabbed interface. On
one tab page, we have "embedded" a form. Our question is this:

How do we respond to the click event on the TAB as opposed to a click
on the tab page. This has us stumped! For example:
We have 3 tabs: Tab1, Tab2, Tab3.
When Tab1 is active, we have a form that shows on that tabpage.
When Tab2 is clicked, we want the form to close. However, this only
occurs if the user clicks on the actual Tab2 page itself. Can we
somehow capture the click event on the TAB that reads Tab2?

TIA,

Wink
 
Ken,

Thanks very much for the response. We solved it (for now!)
At this point, we check the selected index property of the tabcontrol
itself and then close the form based on that. Works well.

Thanks again,

Wink and friends
 
Back
Top