haswoo.blogg.se

Vb net 2010 sample projects
Vb net 2010 sample projects











vb net 2010 sample projects
  1. VB NET 2010 SAMPLE PROJECTS CODE
  2. VB NET 2010 SAMPLE PROJECTS WINDOWS

If you change the Console.WriteLine method call into the MsgBox() function, the message will be displayed in a message box.

VB NET 2010 SAMPLE PROJECTS WINDOWS

However, it’s easy to add some basic elements of the Windows interface to a console application.

VB NET 2010 SAMPLE PROJECTS CODE

This code is quite similar to the code of the equivalent Windows applications we developed earlier, except that it uses the Console.WriteLine statement to send its output to the command prompt window instead of a message box.Ī console application doesn’t react to events because it has no visible interface.

vb net 2010 sample projects

It then prints the appropriate message on a new line, as shown in Figure 1.16.įigure 1.16 – A console application in developed in Vb 2008 which uses the command prompt window to interact with the userĬonsole.WriteLine(”Enter your favorite language”)Ĭonsole.WriteLine(”Wow! you selected ” & language)Ĭonsole.WriteLine(language & ” is not a bad language.”)Įnd Sub End Module Code language: VB.NET ( vbnet ) The console application you’ll build in this section, ConsoleApplication1, prompts the user to enter the name of her favorite language. We will not return to this type of application later in the tutorial because it’s not what you’re supposed to do as a Windows developer. This type of application is called a console application, and I’m going to demonstrate console applications with a single example. It’s a text window, and the only way to interact with an application is to enter lines of text and read the output generated by the application, which is displayed in this text window, one line at a time.

vb net 2010 sample projects

The command prompt window isn’t really a DOS window, even though it looks like one. Apart from Windows applications, you can use Visual Studio 2008 to build applications that run in a command prompt window.













Vb net 2010 sample projects