
how to set focus to first active control in frame
Hello,
I have the following problem.
I have a frame which contains several controls. I want to set the focus to
the first active control from the frame (ie the control with the lowest
tabindex, which can get the focus). I can give a control the focus with the
SetFocus method, but how do I know which control should get this focus? Note
that there can be in this frame controls which act as a container for other
controls, so it could also be one of these. I started with a routine which
enumerates over all controls of the frame container, but this doesn't find
the controls which are again part of a container (ex another frame). Is
there an easy method to accomplish this task?
Thanks in advance.
Peter Notebaert
peno1<at>mail<dot>com