Link to home
Start Free TrialLog in
Avatar of svemir
svemir

asked on

How to sort VB .NET Tab Pages?

Dear expert,

I sort TabPages in Tab Control at design time but they do not appear in the same way at run time. What should I do.

Tnaks, Svemir.
Avatar of gdexter
gdexter

I have seen this before in my own apps

Go into the Code for the form and look in the "Windows Form Designer generated code" region
and locates the codes that adds the tab pages to the tab ctrl
ensure that the indexes for the tab pages reflect the designers index.

If they do not adjust accordingly

If they do (and this is strange but it seems to work) make sure the that the tab pages are added to the
Tab Control in the order of index.
Avatar of svemir

ASKER

Could you please explain this little bit more because first I already check!

"If they do (and this is strange but it seems to work) make sure the that the tab pages are "added" to the
Tab Control in the order of index."
ASKER CERTIFIED SOLUTION
Avatar of gdexter
gdexter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of svemir

ASKER

I fix it by changing order in which controlos are added.

Thanks you gdexter!