是说让句柄对应的这个对象获得焦点吗?使用SetFocusAPI函数,声明如下。传入句柄作为参数即可。Public Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" (ByVal hwnd As Long) As Long