karnaini
asked on
Reorder Array Control Index
Hi all,
I want to reorder the index of array control, Is there any fastest way to reorder these array controls?
Regards,
Iskandar
I want to reorder the index of array control, Is there any fastest way to reorder these array controls?
Regards,
Iskandar
If you are in design mode, the easiest way to reorder them is to select each control in the order that you want, then change the index property, VB will reorder the controls with higher index automatically
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
At run-time, you can load a control array item with any index that you choose (as long as it doesn't exist already) and it will take on the characteristics of the "default" control (usually index 0) after which you can customize it, for example, to match another control before you delete the other control.
What i did in the past was change the last index to array to the highest one that i needed. After that i did renumber the index from there to down. There was collision sometimes.
Hi karnaini,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:
Accept MCummings's comment(s) as an answer.
karnaini, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you. DO NOT accept this comment as an answer.
EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:
Accept MCummings's comment(s) as an answer.
karnaini, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you. DO NOT accept this comment as an answer.
EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
Comment from expert accepted a answer
Computer101
E-E Admin
Computer101
E-E Admin
if yes,
i think no easy way. i follow these steps.
1. rename control name to something else , ex. txtEntry to txtEntry1
2. in the order i want select the control and rename it to old name and chenge index to required index.
but take care of index values referenced in code.