|
-
Sep 22nd, 2011, 12:53 AM
#1
Thread Starter
New Member
Need Help With Text box Disable
My text box changes to 6 when buttons click to fast
but all the codes revolve around 5 so how do i make that textbox1 disables with 5
Public Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
intTimerCounter = intTimerCounter + 1
Label2.Text = intTimerCounter
If intTimerCounter = 30 Then
Button1.Enabled = False
Button2.Enabled = False
TextBox1.Enabled = False
Timer1.Stop()
End If
If TextBox1.Text = 5 Then
TextBox1.Enabled = False
Button1.Enabled = False
Button2.Enabled = False
Timer1.Stop()
Form4.Show()
End If
ProgressBar1.Value = TextBox1.Text
ProgressBar1.Maximum = 5
If ProgressBar1.Value = ProgressBar1.Maximum Then
Timer1.Stop()
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
|