This is the Third lesson in the Visual Basic.NET tutorials.
Lesson 3 - Variables.
In this lesson we will cover some basic usage on Variables - also incorporating use of the Message Box from the first lesson and the Textbox usage from the 2nd lesson.
This lesson will cover a bit of form designing, form properties and a small bit of code.
-----CODE----
Public Class Form1 Dim sometext As String = "This is some text" Dim number As Integer = 3578 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Text = sometext End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox2.AppendText(sometext) End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click MsgBox(sometext & " " & number + 302) End Sub
End Class
-----CODE---- Download Visual Basic 2010 Here: http://www.microsoft.com/express/Downloads/#2010-Visual-Basic FREE Software from Microsoft
Link to this comment:
All Comments (0)