# Re: How can I get the focus in many textbox?

Posted by ÀÏ¹Ö on September 09, 1998 at 23:21:52:

In Reply to: How can I get the focus in many textbox? posted by FanHao on August 11, 1998 at 14:43:47:

: I am a beginer for VB, I need help, maybe the question is so simple, but I can't
: solve it by myself.

: Q :
: I want to judge whether the focus is in the special textbox , but I can't
: get the focus by use the function "If textbox1.SetFocus = True Then",
: because compile error often occurs ,How can I do ?
: I am anxious for your answer, thank you very much.
:

You Can Use
If Me.ActiveControl.Name="Text1" Then
..........
End If

Follow Ups: