Active control name

Hi Experts,

How do I get the name of the previously active control in vb.net. The cursor is in textbox1 Form2, I select a menu Item that requires the name of the control the cursor was in prior to clicking the menu?  Multiple forms are open!

Regards,
Joe
LVL 1
JoeBo747Asked:
Who is Participating?
 
DarkoLordCommented:
Hi, you can store the last control to a temporary variable within each control's Leave event
0
 
JoeBo747Author Commented:
Hi DarkoLord:

Thanks for the help!

Regards
Joe
0
 
DarkoLordCommented:
Hi,

You're welcome!

Cheers,
Darko
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.