help with ActiveControl method

N

n1mbus

I want to get the active control to send to routine when a button is pressed
on the form, but all I'm getting is the button as the active control. Is
there a way to get the control that was active before the button is pressed?
 
D

Dennis

Screen.PreviousControl

will give you the text in the box that had the focus before the button was
pressed if this is what you want.
 
J

John Smith

The PreviousControl Property should be what you want, but don't forget to
error trap in case there wasn't one!

HTH
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top