troubleshooting Question

How to a Message Box in Response to Clicking TabPage2 on a TabControl on Form

Avatar of FaheemAhmadGul
FaheemAhmadGulFlag for United Kingdom of Great Britain and Northern Ireland asked on
.NET ProgrammingVisual Basic.NETMicrosoft Development
5 Comments1 Solution371 ViewsLast Modified:
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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros