Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine if text box has focus

Status
Not open for further replies.

ljpitre

Programmer
Sep 14, 2007
5
US
Is there a way in VB 6 to determine if a textbox has focus?
 
Code:
    If Me.ActiveControl = Text1 Then
        MsgBox "Has focus"
    Else
        MsgBox "Doesn't have focus"
    End If


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top