Author Topic: Starting VB.NET programming - Setting up a VB.NET environment  (Read 8679 times)

0 Members and 1 Guest are viewing this topic.

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Starting VB.NET programming - Setting up a VB.NET environment
« on: October 03, 2010, 11:17:30 pm »
Starting VB.NET programming
Setting up a VB.NET environment
Tutorial by ande for Evilzone

Contents _
0x00 - VB.NET
0x01 - Software
0x02 - Starting VB.NET programming



0x00 - VB.NET
VB.NET or Visual Basic .NET is an high level language for windows systems(Note that with mono for Linux, you can code VB.NET on Linux aswell). VB.NET uses libraries from the .NET framework 2.0 and above, therefore the machine you are going to code or run a VB.NET application on has to have the .NET framework 2.0 or higher.



0x01 - Software
To create VB.NET application you need an VB.NET compiler and an VB.NET IDE. Because VB is created by Microsoft, they naturally got an all in one IDE and compiler called Visual Basic Express Edition, witch can be downloaded here: http://www.microsoft.com/express/Downloads/. There is a 2010 edition and a 2008 edition, personally I like the 2008 edition better, but that's up to you, the code syntax are the same.




0x02 - Starting VB.NET programming
Visual Basic .NET can create a variety of different application types. The most common ones are Windows Forms Application, Console Application and Class Library. You will most likely use the Windows Forms Application and Console Application for the most part. Here are some VB.NET code examples.

Simple Hello World print (Console Application)
Code: [Select]
Module Module1

    Sub Main()
        Console.WriteLine("Hello World")
    End Sub

End Module

Variable print (Console Application)
Code: [Select]
Module Module1

    Sub Main()
        Dim Var1 as string = "Hello World"
        Console.WriteLine(Var1)
    End Sub

End Module

Math + print (Console Application)
Code: [Select]
Module Module1

    Sub Main()
        Dim Var1 As Integer = 10
        Dim Var2 As Integer = 10
        Dim Var3 As Integer = Var1 + Var2
        Console.WriteLine(Var3)
    End Sub

End Module

Here is 16 awesome videos from Microsoft called Absolute Beginner's Series (Videos), watch all of these and follow the examples, and you will be able to code in no time ;)
http://msdn.microsoft.com/en-us/beginner/bb308737.aspx
http://msdn.microsoft.com/en-us/beginner/bb308740.aspx
http://msdn.microsoft.com/en-us/beginner/bb308743.aspx
http://msdn.microsoft.com/en-us/beginner/bb308746.aspx
http://msdn.microsoft.com/en-us/beginner/bb308749.aspx
http://msdn.microsoft.com/en-us/beginner/bb308752.aspx
http://msdn.microsoft.com/en-us/beginner/bb308799.aspx
http://msdn.microsoft.com/en-us/beginner/bb308825.aspx
http://msdn.microsoft.com/en-us/beginner/bb308829.aspx
http://msdn.microsoft.com/en-us/beginner/bb308816.aspx
http://msdn.microsoft.com/en-us/beginner/bb308820.aspx
http://msdn.microsoft.com/en-us/beginner/bb308832.aspx
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Starting VB.NET programming - Setting up a VB.NET environment
« Reply #1 on: March 28, 2011, 01:27:47 pm »
Good idea if i start the same post as you but then for c#.net, including some tips and techniques on a good and organized programming environment?
~Factionwars

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Starting VB.NET programming - Setting up a VB.NET environment
« Reply #2 on: March 28, 2011, 02:25:21 pm »
Good idea if i start the same post as you but then for c#.net, including some tips and techniques on a good and organized programming environment?

Absolutely ;)
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true