|
-
Mar 10th, 2009, 09:49 PM
#1
Thread Starter
Hyperactive Member
I feel like a n00b, but how do you ...
Alright, I have form, with multiple buttons on it.
I want it so when I Click on the Button that Says START it will Change to STOP but at the same time Enable all the Disabled Buttons on the Form. ATM I have this.
vb Code:
Dim ctl As Control = Me.GetNextControl(tbStudio, True)
Do Until ctl Is Nothing
If TypeOf ctl Is Button Then
If ctl.Enabled Then
ctl.Enabled = False
Else
ctl.Enabled = True
End If
End If
ctl = Me.GetNextControl(ctl, True)
Loop
Works Good, but when I add the btnStartStop.Text = "Start" or .Text = "Stop" to the If Statements, it's always getting stuck on "Stop"
I also tried a Boolean statement but came out all funky, EVERY OTHER button was Disabled while the OTHERS were Enabled.
I feel like a n00b, I've been programing for a bit now, but just got back into it, Help!
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
|