I have a TabControl on a Form1 in a Visual Studio 2008 Project. This TabControl has three tab pages and three buttons on top of it that currently have the names TabPage1 and TabPage2 and TabPage3. I would like a Message Box to show up when I click TabePage2. That is when I click on the Button that has the name of the TabePage2, not the the actual tab page2.
So basically I am looking for a way to programatically capture the click event of the Button that represents the name of that TabPage. I would be grateful for advice on whether it is possible to do that and if yes how. I have been able to see that there is a ClickEvent for TabePage1 and TabPage2 etc but I have not been able to find if there is a ClickEvent for the Button on the top bar that represents different pages. Thanks for your help in anticipation.
Please note that this is for Visual Basic Project in Visual Studio 2008.