Hello everyone
I am new to C#, the title is my question, I am developing an application in C#, my application has 1 tabcontrol
(5 tabpages), what I want to do its disable the next tabPage , and all of
them and the button next until all the current tabPage is
filled in all fields. Very apreciated the answers
Bye
How to disable tabpages in C# and botton next until the all fields are filled?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Naeem KhanRank #2,072 · 698 reputationPosted Sep 18, 2010, 10:32 AM EDT
i m sending you code for disable tab page.... you can try this code...
// C# private void tabControl1_SelectedIndexChanged(object sender, System.EventArgs e) { // Check Credentials Here if ((CredentialCheck.Checked = true) & (tabControl1.SelectedTab == tabPage2)) { tabControl1.SelectedTab = tabPage2; } else if ((CredentialCheck.Checked = false) & (tabControl1.SelectedTab == tabPage2)) { MessageBox.Show("Unable to load tab. You have insufficient access privileges."); tabControl1.SelectedTab = tabPage3; } }try this and reply me
Rivaldo Grenz8 reputationPosted Sep 18, 2010, 10:41 AM EDT