关于界面上有两个txtbox,两个按钮。怎样才能使程序一开始按钮变灰且光标在第一个txt上闪,输入字以后按钮恢复。的问题
Private Sub Form_Load()
Text1 = “”: Text2 = “”
Text1。TabIndex = 0
Command1。Enabled = False
Command2。Enabled = False
End Sub
Private Sub Text1_Change()
If Text1 “” Then
Command1。
Enabled = True
Command2。Enabled = True
Else
Command1。Enabled = False
Command2。Enabled = False
End If
End Sub
Private Sub Text2_Change()
If Text2 “” Then
Command1。
Enabled = True
Command2。Enabled = True
Else
Command1。Enabled = False
Command2。Enabled = False
End If
End Sub。