Hello all,
I have recently created a tab control in a program, and the tabpage order keeps changing around on me...when I looked up this problem, it seems that .net has a bug that causes this...I have tried to manually set the order, but have not been able to get it to work. The following are a few of the ways that I have tried...
In InitializeComponents():
----- AND -----
----- AND -----
Any help would be greatly appreaciated.
Thanks in advance,
Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
I have recently created a tab control in a program, and the tabpage order keeps changing around on me...when I looked up this problem, it seems that .net has a bug that causes this...I have tried to manually set the order, but have not been able to get it to work. The following are a few of the ways that I have tried...
In InitializeComponents():
Code:
this.tabControl1.Controls.SetChildIndex(this.tbHome, 0);
this.tabControl1.Controls.SetChildIndex(this.tbAccount, 0);
this.tabControl1.Controls.SetChildIndex(this.tbAdministration, 0);
this.tabControl1.Controls.SetChildIndex(this.tbCPTLookUp, 0);
this.tabControl1.Controls.SetChildIndex(this.tbPPOProviderLookUp, 0);
this.tabControl1.Controls.SetChildIndex(this.tbReporting, 0);
this.tabControl1.Controls.SetChildIndex(this.tbEDI, 0);
this.tabControl1.Controls.SetChildIndex(this.tbPhysician, 0);
this.tabControl1.Controls.SetChildIndex(this.tbPatient, 0);
this.tabControl1.Controls.SetChildIndex(this.tbRepricing, 0);
Code:
this.tabControl1.Controls.SetChildIndex(this.tbHome, 1);
this.tabControl1.Controls.SetChildIndex(this.tbAccount, 2);
this.tabControl1.Controls.SetChildIndex(this.tbAdministration, 3);
this.tabControl1.Controls.SetChildIndex(this.tbCPTLookUp, 4);
this.tabControl1.Controls.SetChildIndex(this.tbPPOProviderLookUp, 5);
this.tabControl1.Controls.SetChildIndex(this.tbReporting, 6);
this.tabControl1.Controls.SetChildIndex(this.tbEDI, 7);
this.tabControl1.Controls.SetChildIndex(this.tbPhysician, 8);
this.tabControl1.Controls.SetChildIndex(this.tbPatient, 9);
this.tabControl1.Controls.SetChildIndex(this.tbRepricing, 10);
Code:
this.tabControl1.Controls.SetChildIndex(this.tbHome, 1);
this.tabControl1.Controls.SetChildIndex(this.tbAccount, 1);
this.tabControl1.Controls.SetChildIndex(this.tbAdministration, 1);
this.tabControl1.Controls.SetChildIndex(this.tbCPTLookUp, 1);
this.tabControl1.Controls.SetChildIndex(this.tbPPOProviderLookUp, 1);
this.tabControl1.Controls.SetChildIndex(this.tbReporting, 1);
this.tabControl1.Controls.SetChildIndex(this.tbEDI, 1);
this.tabControl1.Controls.SetChildIndex(this.tbPhysician, 1);
this.tabControl1.Controls.SetChildIndex(this.tbPatient, 1);
this.tabControl1.Controls.SetChildIndex(this.tbRepricing, 1);
Any help would be greatly appreaciated.
Thanks in advance,
Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.