请求高手要这个代码
就是当点击时就会隐藏框内的文字,输入了文字状态时点击不会清除框的文字

就是QQ登陆框的文本框这种!

2012-04-02 13:13
有没有人会???????
2012-04-02 13:23
2012-04-02 13:50

2012-04-03 11:25

2012-04-03 13:42
2012-04-03 19:46

2012-04-04 08:11


2012-04-04 08:53
2012-04-27 11:00
程序代码:
Option Explicit
Const AccountString = "Enter account"
Private Sub Form_Load()
textAccount.ForeColor = &HC0C0C0
textAccount.Text = AccountString
End Sub
Private Sub textAccount_Click()
textAccount.Text = ""
textAccount.ForeColor = &H80000012
End Sub
Private Sub textAccount_LostFocus()
If textAccount.Text = "" Then
textAccount.Text = AccountString
textAccount.ForeColor = &HC0C0C0
End If
End Sub

2012-04-27 12:02