Windows Develop Bookmark and Share   
 index > Windows Forms Designer > How to detect tab selection changed event in TabControl
 

How to detect tab selection changed event in TabControl

I tried adding handler to handle the click event in the TabControl, it works but only when you use the mouse to select the tab.  Since there are other means to select a tab in a tab control liked using the arrow keys or mouse.  Is there a single event that I can capture for tab selection changed?
MigrationUser 1  Friday, February 21, 2003 6:41 PM
Did you try the SelectedIndexChanged Event?
MigrationUser 1  Friday, February 21, 2003 6:43 PM
Thanks, it works.  For reason, I thought I've tried it and it didn't work.
MigrationUser 1  Friday, February 21, 2003 7:05 PM
SelectedIndexChanged is in most controls, so always look for that one!  Some other controls have more specialized Changed Events that will be more specific to that Control.

Glad you got it  :) 
MigrationUser 1  Friday, February 21, 2003 7:07 PM

You can use google to search for other answers

Custom Search

More Threads

• Windows Form Inherits
• Object- Oriented Programming Problem
• Changing font colors etc at run time using hex input Microsoft Access 2007
• If a UserControl supports ISupportInitialize, is there a way to get the Designer to call BeginInit()...
• Reading appSettings from a custom ControlDesigner
• View Designer Error message!
• Drawing images and manipulating with that
• Rounded Form
• _MYFORMS=True What is this constant and why designer gets lost when not having it?
• Windows Forms TimePicker Control