Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

VBNET: Lesson 3 - Variables

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
63 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 29, 2011

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

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more