VB6.0如何让TEXT框架在没有输入文字的情况下使命令按钮为不可用状态?
1个回答
展开全部
你没说按几次关闭窗体,我就写了按超过5次后关闭,还有“上方出现文字”我没明白哪出现文字就写了在窗体打印text输入的内容,有问题可追问。
Private Sub Form_Load()
Command1.Enabled = False
End Sub
Private Sub Text1_Change()
If Text1.Text <> "" Then
Command1.Enabled = True
Else
Command1.Enabled = False
End If
End Sub
Private Sub Command1_Click()
Static n As Integer
Print Text1.Text
n = n + 1
If n > 5 Then End
End Sub
Private Sub Form_Load()
Command1.Enabled = False
End Sub
Private Sub Text1_Change()
If Text1.Text <> "" Then
Command1.Enabled = True
Else
Command1.Enabled = False
End If
End Sub
Private Sub Command1_Click()
Static n As Integer
Print Text1.Text
n = n + 1
If n > 5 Then End
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询