Getting an object reference to a component at runtime


Author
Message
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
I'm in over my head again. This looks like something McGuffey would geek out on.



I have a groupbox control - my subclass of SF groupbox.



The goal is to put code in the Leave that will find a tabordercontroller on the form and set focus to the nextvisiblecontrol. (necessary as when on a tabpage is doesn't seem to be able to find it on its own)



The components collection is not exposed and as far as I can tell the TOC is not a in the controls collection.



the me.components.components is empty from within the form.



I am okay with always naming the TabOrdercontroller TOController and assuming only one on a form.



But I want to be able to say "If the parent form of this groupbox uses a tabordercontroller call its method to setfocus to the next visible control"



Thoughts?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search