mickn66 Posted November 10, 2002 Posted November 10, 2002 How can I tell which control in a collection of controls (actually on on a panel) has the focus - or which control the mouse is hovering over, or which control in the collection was just clicked? Any help would be greatly appreciated! Thanks! Mick Quote
*Gurus* Derek Stone Posted November 10, 2002 *Gurus* Posted November 10, 2002 Check the Control.Focused property. Dim c As Control For Each c In someControl.Controls If c.Focused Then MessageBox(c.ToString, Application.ProductName) End If Next That code is off the top of my head, so if it doesn't work just give a yell. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.