3个回答
展开全部
在FORM上 放两个文本框加入以下代码
Private Sub Text1_GotFocus()
Text1.Text = "获得焦点"
End Sub
Private Sub Text1_LostFocus()
Text1.Text = "失去焦点"
End Sub
Private Sub Text2_GotFocus()
Text2.Text = "获得焦点"
End Sub
Private Sub Text2_LostFocus()
Text2.Text = "失去焦点"
End Sub
Private Sub Text1_GotFocus()
Text1.Text = "获得焦点"
End Sub
Private Sub Text1_LostFocus()
Text1.Text = "失去焦点"
End Sub
Private Sub Text2_GotFocus()
Text2.Text = "获得焦点"
End Sub
Private Sub Text2_LostFocus()
Text2.Text = "失去焦点"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询