# Re: 如何知道哪个Control 目前 GotFocus

Posted by 毛 on September 26, 1997 at 21:17:17:

In Reply to: 如何知道哪个Control 目前 GotFocus posted by 小贤 on September 26, 1997 at 19:41:56:

grobal iii as integer

private sub text_gotfocus(index as integer)
iii = index
end sub

private form_keydown()
print "text(" & iii & ")设定focus"
end sub

: 我如何用程式码得知目前是 哪个Control GotFocus
: 例如:
: 我的表单(form1) 有5 个 Text ; text1 , text2 , text3 , text4 , text 5
: 当我按下按键 ( Form_KeyDown) 要显示目前是 哪个 Text
: GetFocus !!
: 请问我要如何做呢?

Follow Ups:

- Re: 如何知道哪个Control 目前 GotFocus 小贤 10:02:15 9/28/97 (1)
  - 如何知道哪个Control 目前 GotFocus 阿晴 07:00:57 9/29/97 (0)