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

VS 2010 How would I do this?

$
0
0
I am wanting to make it so that IF you press the start button and textbox2.text isn't a number from 1-99 ANDALSO listbox1.items <> Nothing THEN a timer will start.

I am not sure how to do this, this is what I have. Don't laugh. :blush: :cry: :( :sick:

Code:

    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
        If TextBox2.Text <> (1,99) AndAlso ListBox1.Items <> Nothing then
            Timer1.Start()
        End If
    End Sub

And btw... That code doesn't even work. It's what I tried though.

Viewing all articles
Browse latest Browse all 27393

Trending Articles



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