ARTICLE

Console Application in Visual Basic .NET

Posted by Atul Chaudhary Articles | Visual Basic 2010 December 28, 2010
In this article, I will explain you about Console Application and it execution in Visual Basic .NET.
 
Reader Level:

In this article, I will explain you about Console Application and it execution in Visual Basic .NET.

Console Application

Console Applications have recently been introduced in Visual Basic .NET, they are command-line based applications. Console Applications allow us to write data to the console read data from the console, and run in within a DOS Shell. They do not support Windows GUI's. Console Applications are supported by the System.Console namespace.

Example:

Goto Start-->All Program-->Microsoft Visual Studio 2010.

img1.gif

Select New Project on the Start Page

img2.gif

Select language Visual Basic and Console Application from New Project window and press OK button.

img3.gif

Now place the code given below in Module1.

Imports System.Console
Module Module1
 
    Sub Main()
        System.Console.Write("This is my first Console Application")
        Read()
    End Sub
 
End Module

img4.gif

And now press the Start Debugging button or F5 button on your keyboard to execute the Console Application.

The output of Console Application is:

img5.gif
 
Summary

Hope this article help you to Understand about Console Application and its execution in Visual Basic. 


 

Login to add your contents and source code to this article
share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Become a Sponsor