Newbie: tab menu event

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Hi,

I know this is stupid but what event gets triggered when i click on a
specific tab in a tab menu?
I can't find anything appropriate.
The Click event gets triggered after i select the specific tab and click
inside the form.

TIA
 
Apologies!

I got my answer.
Basically, the event handler has to be refered to the TabControl if the
event is to be raised by clicking on the tab header.
If the event handler is refering to the tabPage then the user has to click
*inside* (client area) to raise the event.

It took quite a bit of looking around to understand the difference.
 
steve said:
I know this is stupid but what event gets triggered when i click on a
specific tab in a tab menu?

Add a handler to the tabcontrol's 'SelectedIndexChanged' event and check its
'SelectedIndex' or 'SelectedTab' property there.
 

Ask a Question

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.

Ask a Question

Back
Top