Loading...

How to make loops in Visual Basic

12,892 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on May 3, 2009

[Voice intructional!]
Read ME First
--
Alright in this tutorial i will be teaching you how to make a simple loop in visual basic 2008
here is the code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objrandom As New Random Dim intrandomnumber As Integer = 0 clearlist() Do Until intrandomnumber = 25 intrandomnumber = objrandom.Next(100) ListBox1.Items.Add(intrandomnumber.ToString) Loop End Sub Private Sub clearlist() ListBox1.Items.Clear() End Sub
--
Thank you for watching make sure to subscirbe~

  • Category

  • License

    • Standard YouTube License

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...