C# - TabControl TabPage's SelectedIndex

I have a program that has a tabControl in it, with a few TabPages and a few stuff on the out side of it.

I want to program a TabControl SelectedIndex Change or something like that.... What I want it to do is this:

I have two TabPages, if tabPage1 is selected then it enables some groupboxes on the outside of the TabControl (in the same Form), if tabPage2 is selected then the enable groupboxes = false. Can someone help me with that?


use the selectedindexchanged event

private void TabControl1_SelectedIndexChanged(Object sender, EventArgs e)
       MessageBox.Show("You are in the TabControl.SelectedIndexChanged event.");    

and check what the current index is from the sender object


Need Your Help

MySQL connection with C# through PHPMyAdmin created database

c# mysql asp.net

We are sitting with a problem regarding MySQL database insertion.

django-paypal payment complete but signal failed

django django-signals django-paypal

I am using django-paypal for django 1.7 project. Now I am testing on a paypal sandbox.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.