MetroFramework icon indicating copy to clipboard operation
MetroFramework copied to clipboard

TabPage sequence changes while saving desing of form.

Open dibyamani opened this issue 12 years ago • 3 comments

When I save the form's design, the sequence of the tab pages gets changed inside InitializeComponent() method of form designer.

dibyamani avatar Aug 07 '13 06:08 dibyamani

It's a known bug - and I don't have a solution for this. If you can provide a fix it would be more than welcome!

thielj avatar Aug 07 '13 10:08 thielj

Hi Tielj,

I have figured out the root of the problem but I don't know the solution. Probably it will help you to fix this issue. Actually, the OnControlAdded method in the MetroTabControl(line no: 349) is giving this problem. If I comment this method, problem is fixed.

Thank you.

dibyamani avatar Aug 07 '13 11:08 dibyamani

you can avoid the problem by saving the tab value . go to program class declare a varibale like pulic static int32 tab = 0; on metrotab selectedtab change event write following program.tab = metroTabControl1.SelectedIndex;

Now on form load this.metroTabControl1.SelectedIndex =program.tab;

.//////////////////////////// this will surely solve your problem

zeeshan47 avatar Jan 08 '15 12:01 zeeshan47