Wednesday, 23 January 2013

VB.net Basic Variable Types

VB.net Variable Types:

To get started the first Variable type you will use is a Type Call "String", a string contains display variables, for example. VB.Net Contains 6 Characters, another Type is "Char" a char is a single Display Value for a Byte of Data. Example "a" is a char, Another type is Byte, byte is a numeric value for a Display Value. There are 0 - 255 Ascii Characters and Bytes in a default Ascii Table. Another Type is Integer, a numeric Value -2.142 billion To 2.142 billion.

Example:

Dim TempString As String = cStr("TempString")
Dim TempChar As Char = cChar("c")
Dim TempByte As Byte = cByte(10)
Dim TempInteger As Integer = 10

VB.net Tutorial 1

Getting Started:

Please make sure you have Visual Studio, you can get visual studio from Here or Here. Now that we have Visual Studio we will begin by making a New project.

Step 1:
















Then select Windows Forms Application














Step 2

Now you will see a form.



















Step 3

Now here is the tricky bit, Double Click on the Grey Background of the form, you will then see a Code Snippet that handles the form_load.

Type the following code.

Dim Answer As String
Answer = "Hello World"
MsgBox(Answer)

Thats it, welcome to Vb.net