Pages

Monday, May 2, 2016

Visual Basic .Net Random Number Generator

Visual Basic .Net Random Number Generator


Video:


Download Project:
Download

Password: ucx

Source Code:

Public Class Form1

    Private Sub Button2_Click_1(sender As Object, e As EventArgs) Handles Button2.Click
        txt_RandomNumber.Clear()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        txt_RandomNumber.Clear()

        Dim RNG As New Random
        txt_RandomNumber.Text = RNG.Next(txt_Min.Text, txt_Max.Text)
    End Sub
End Class

0 comments:

Post a Comment