|
-
Feb 13th, 2012, 02:34 AM
#1
Thread Starter
Member
enable and disabled buttons
When I start my program, a button is disabled because i wrote if my text box is empty its disabled. But if the value of the text box is filled then the button will automatically enable. When i delete the value completely in the text box, the button is still enabled. How do i keep it so as long as the value of the text box is empty the button is disabled, even after i have deleted the value? Thank You. Here is my code.
Private Sub Form_Load()
Command1.Enabled = False
Command2.Visible = False
End Sub
Private Sub Text1_Change()
If Text1.Text > "" Then
Command1.Enabled = True
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|