How can I find all the controls on a form that are currently visible to the user? i.e. list all the controls that can be tabbed to and are not hidden from view (e.g. on a non-visible tab sheet).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you write that you want to list the controls that you can tab to, I assume you are talking about windowed controls.
Then you can do simply
if you know that the form owns all its children and no other controls. Otherwise, you have to do