A console program has no graphics .It is text .It is easy to develop .It can uses few resources and is efficient.It will not any visual design but it will accomplish an processing tasks .
These application are command-line based and run in DOS windows.This gives one the feeling once again that vb.net is following the lead of java ,because java application run in DOS windows in windows.However the change is a welcome one, because it provides us with an option for very simple programming ,without worrying about user interface implementation and issues.
CREATING A CONSOLE VB.NET APPLICATIONTo use the File|New|Project menu item to open the new project menu item ,and select console application in the templates box .
when you create the new project in this case because there is no user interface ,vb opens the project directly to a code window.
THE CODE HERE LOOK LIKE THIS:
Module Modulel
Sub Main (),
End Sub
End Module
EXAMPLE
Simple program for console application
sub main(),
Console. WriteLine ("hello")
end sub
end module
output
hello
0 comments:
Post a Comment