tailieunhanh - Developing a Simple Windows Application phần 1
Developing a Simple Windows Application In this section, you'll see how to create a simple Windows application using VS .NET. | Developing a Simple Windows Application In this section you ll see how to create a simple Windows application using VS .NET. This application will consist of a single form that contains a label and a button. When you click the button the text for the label will change to a quote from Shakespeare s play Macbeth. You ll also see how to compile and run the example application. Creating the Windows Application Start VS .NET by selecting Start Programs Microsoft Visual Studio .NET Microsoft Visual Studio .NET. To create a new Windows application click the New Project button on the Start page or select File New Project. Tip You can also create a new project by pressing Ctrl Shift N on your keyboard. You ll see the New Project dialog box which you use to select the type of project you want to create. Because you re going to create a C Windows application select the Visual C Projects folder from the Project Types list and select Windows Application from the Templates area of the New Project dialog box. VS .NET will assign a default name to your project this default name will be WindowsApplication1 or something similar. You can specify your own name for your project by changing the text in the Name field go ahead and enter MyWindowsApplication in the Name field as shown in Figure . Figure Creating a C Windows application in Visual Studio .NET Note The Location field specifies the directory where the files for your new project are stored. VS .NET will set a default directory but you can change this by entering your own directory. This default directory is the Documents and Settings directory on your hard drive. Click the OK button to continue. VS .NET will create a new subdirectory named MyWindowsApplication in the directory specified in the Location field. Once VS .NET creates the directory along with some initial files for your project VS .NET will display a blank form as shown in Figure . You can think of the form as the canvas on which you can place standard .
đang nạp các trang xem trước