I have a Form and a tabcontrol with 2 tabs and a timer in it. I want to know how to disable click tab2 when Form load and enable it when a timer tick for amount of time.
I have tried tab2.Enabled = false;
, it works fine but people still click and choose that tab (contents are disabled).
Thank you!
Sorry about my english!
Ok the solution is:
private void tabControl1_Selecting(object sender, TabControlCancelEventArgs e)
{
if (e.TabPage == tabPage2)
e.Cancel = true;
}