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

Related Posts:

  • VB.Net Chapter 7 - Controlling Program Flow Chapter 7 - Controlling Program Flow In This Chapter • Understanding Conditional and Logical Operators • Using the If control structure with the Comparison Operators In the previous Chapters, we have learned how … Read More
  • VB.Net Chapter 5 - Performing Mathematical Operations Chapter 5 - Performing Mathematical Operations In This Chapter • Learn how to use Mathematical operators.  Computers can perform mathematical calculations much faster than human beings. However, the computer its… Read More
  • VB.Net Chapter 4 - Managing VB2010 Data Chapter 4 - Managing VB2010 Data In This Chapter • Getting to know various data types in Visual Basic 2010  • Assigning values to the variables  • Getting to know various arithmetic operators in Visual Basic 201… Read More
  • VB.Net Chapter 6 - String Manipulation Chapter 6 - String Manipulation In This Chapter • Learn how to manipulate Strings String manipulation is an important part of programming because it helps to process data that come in the form of non-numeric types such … Read More
  • VB.Net Chapter 8 - Select Case Control Structure VB.Net Chapter 8 -  Select Case Control Structure  In This Chaper • Understanding The Select Case ….End Select Structure In the previous Chapter, we have learned how to control the program flow using the If… Read More

0 comments:

Post a Comment