Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 Check Box To Loop Code

$
0
0
How do I make it so if the check box is clicked, then run code over and over again really fast? I tried to use the Do / Loop and GoTo, but they both just freeze the program.

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Do While CheckBox1.CheckState = CheckState.Checked
A = A + 1
TextBox1.Text = A
Loop
End Sub

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>