usingMaths.com
Demonstrating and showing pupils and students one application of Mathematics.







<< PreviousNext >>

Getting Started with Visual Basic (VB.Net)



What You Need!

You have no business being here if you are not a Windows user.

Go ahead and download Visual Studio if you don't have it already.
Hey, the Community version is now free!


Using Visual Studio

To create a new project: On the Start Page of Visual Studio, click New Project.
Select Visual Basic and Windows Forms Application under the .Net Framework header.
Give the project a name. Click OK.

To create a new class file: click Project, Add Class.
Select Class, give the class a name and click Add.



Running Visual Basic Codes

To make sure your code contains no errors and see its output before you get to building it, set a breakpoint at the End Sub statement in the main module:
Click on the left area of the "End Sub" line to highlight it;
click Debug at the top of the window, Toggle breakpoint; a red dot appears on the End Sub line.

Press F5, (click Yes) to see the project run to completion - assuming there are no errors.
A new shell is created that shows the result of your code.

Alternatively, click Debug >> Start Without Debugging (Ctrl F5) to see your output.



Notice: Our colour coding follows that of Microsoft's Visual Studio.










<< PreviousNext >>