Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Microsoft C# Professional Projects - Premier Press.pdf
Скачиваний:
177
Добавлен:
24.05.2014
Размер:
14.65 Mб
Скачать

172 Project 1 CREATING A CUSTOMER MAINTENANCE PROJECT

FIGURE 8-19 ReportsForm with the controls

Creating an Interface for JobDetailsForm

JobDetailsForm is used to view and modify the records in the JobDetails table. You can create JobDetailsForm by using Data Form Wizard. Data Form Wizard is used to create forms that interact with an underlying database. You will look at creating JobDetailsForm in the subsequent chapter, which deals with database interactivity in a Windows form.

Summary

In this chapter, you learned that Visual Studio .NET projects are the containers used to hold the development material for an application. A Visual Studio .NET project contains files, folders, and references to the databases that you may require while developing your project. To develop any application in Visual Studio .NET, you need to create a new project by using the New Project dialog box. You can select the template from the available templates to create a variety of applications, such as Windows applications, ASP.NET Web applications, ASP.NET Web services, console applications, and so on.

Using Visual Studio .NET templates, you can create applications that display the output in a console window. Such applications are called console applications. A console application does not have a user interface and is run from the command prompt. Another type of application that you can create using Visual Studio

.NET templates is a Windows application. Visual Studio .NET provides a graph-

WINDOWS FORMS AND CONTROLS

Chapter 8

173

 

 

 

ical interface and the classes in the .NET class library for creating Windows applications. Next, you learned to create a sample Windows application and to add controls to the forms in the application. When you create a Windows application by using the templates provided by Visual Studio .NET, a default form, Form1, is created for you in the design view. Form1 is an instance of the Form class of the .NET class library and is an interface for your application.

The chapter introduced you to several controls provided in the Windows Forms toolbox.These controls include a Label control, a TextBox control, a Button control, a MainMenu control, a RadioButton control, and so on.

Finally, you used the general concepts explained in the chapter to create the layouts of the forms used in the Customer Maintenance project.These forms include Form1, WorkerForm, CustomerForm, ReportsForm and JobDetailsForm.

This page intentionally left blank

Chapter 9

Validations

and Exception

Handling