Results 1 to 3 of 3

Thread: Which object has focus

  1. #1

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Anyone know how I would return which object on a form has the focus? Probably very simple (like me)... Oh, I'd like it to work on a control array too.

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122
    On Error Resume Next
    MsgBox ActiveControl.Name & "(" & ActiveControl.Index & ")"
    If Err.Number > 0 Then MsgBox ActiveControl.Name

  3. #3

    Thread Starter
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Thanks Roger, guess what, I'd just figured it out (purely by chance!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width