>Hi Dragan
>
>>You just gave me the idea to write this little builder:
>
>Thanks a lot for the builder. I tried it when I have selected a very deep seated control and I ran your builder and I can see the whole path. Now I can click on another and judging from the pathname to the control I can guess it is a sibling control or not.
>
>Back to the original problem of this thread, what changes would you suggest I do after I get a textbox to accept a control name so that it returns the path(s) to the same named controls. Then maybe a something like the old _CUROBJ variable is set and the control is highlighted.
I don't know of a way to programmatically select a different control while editing. One thing that would be possible would be to traverse recursively all the controls on the form, looking for the ones with the same name as the currently selected one, then have some sort of selection mechanism (I'd probably just call my alert() with each one's full name on each of the commandbuttons), and then - well, can't select it, but can paint it yellow, or do something else to make it stand out. See my recurse class.