Solved

Working with TabControl.....

Posted on 2003-12-03
1
420 Views
Last Modified: 2010-04-16
Hi Guys,

How does one retrieve the currently active tabpage from a tabcontrol?

I would like certain events to take place when particular tabpages are selected.

kind regards Imran
0
Comment
Question by:imran89
1 Comment
 
LVL 9

Accepted Solution

by:
malharone earned 50 total points
ID: 9870081
tabcontrol1.SelectedTab = tabControl1.TabPages[3];

or
System.Windows.Forms.TabPage tp = tabControl1.TabPages[tabcontrol1.SelectedIndex];
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question