在不编写代码的情况下,如何使VB程序运行后,命令按钮不可见?谢谢!
2个回答
展开全部
自己新建一个文本框和三个command控件
Private Sub Form_Load()
If Len(Text1) = 0 Then
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = False
End If
End Sub
Private Sub Text1_Change()
If Len(Text1) <> 0 Then
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
End If
End Sub
Private Sub Form_Load()
If Len(Text1) = 0 Then
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = False
End If
End Sub
Private Sub Text1_Change()
If Len(Text1) <> 0 Then
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询