Now you are going to create a simple application called Hello that will allow you to enter a person's name and display a greeting message to this person in a message box. 1. Click the New Project button on the toolbar. 2. In the New Project dialog box, select Visual Basic Project Types tree view on the left box and then select Windows under it. The Templates box on the right to view all available models for the type of project chosen. Select theWindows Forms Application template. Finally, the user type Hello in the Name text box and click OK.
Visual Studio 2008 allows you to target your application to a specific version of Microsoft. NET Framework. The combo box in the upper right corner of the New Project dialog box, chose the version 3.5, but you can direct the application to version 3.0 or version 2.0. NET Framework. The IDE will then create an empty Windows for you. So far, your user Helloprogram consists of an empty box, called Windows Forms (or sometimes just a shape), with the default name of Form1.vb
Every time Visual Studio 2008 creates a new file, or as part of the process of creating the project or when you create a new file, you will use a name that describes what it is (in this case, a module) followed by a number.
Next, give your form a name and set some properties for it. 1. Changing the module name to something more indicative of what yourquestion is. Click Form1.vb in the Solution Explorer window. Then, in the Properties window, change the name of the file for Form1.vb HelloUser.vb and press Enter, as shown in Figure 1-9. When you change the properties you need to press Enter or click on another property for it to take effect.
No comments:
Post a Comment