Checking focus status

J

John

Hi

I have two list controls on a form with a couple of buttons. I need to know
which list is currently highlighted by user so when the user presses a
button I know which list to process. How do I find which list is currently
selected/highlighted?

Thanks

Regards
 
M

Matthias Klaey

John said:
Hi

I have two list controls on a form with a couple of buttons. I need to know
which list is currently highlighted by user so when the user presses a
button I know which list to process. How do I find which list is currently
selected/highlighted?

Thanks

Regards

Screen.PreviousControl

should do the trick.

HTH
Matthias Kläy
 
Top