最简单的vb

来源:百度知道 编辑:UC知道 时间:2024/06/07 20:21:05
Private Sub Form_Load()
Text1.Text = ""
Text1.SetFocus

End Sub
为什么是错的?谢谢帮忙

Text1.SetFocus

这里不是用在form里
你可以
Private Sub Command1_Click()
Text1.Text = ""
Text1.SetFocus
End Sub

Private Sub Form_Load()

show'加一句这个,就不会错了!
Text1.Text = ""
Text1.SetFocus

End Sub