Creating the Course Manager Application
In this task, you will create the Course Manager Windows application by using Visual Studio 2010.
To create the Course Manager application by using Visual Studio
On the File menu, click New Project.
Choose either Visual Basic or Visual C# in the Project Types pane.
Select Windows Forms Application in the Templates pane.
Enter CourseManager for the project name, and then click OK.
To create the Course Viewer form
In the CourseManager project, select the default form (Form1).
In the File Properties pane, change the File Name to CourseViewer.vb or CourseViewer.cs.
In Solution Explorer, double-click CourseViewer.vb or CourseViewer.cs to open the form.
In the Properties pane, change the Name property to CourseViewer, and change the Text property to Course Viewer.
In the Toolbox, expand Common Controls, drag the ComboBox control to the form, and change the name of the control to departmentList.
In the Toolbox, drag the Button control to the form, change the name of the control to closeForm, and change the Text value to Close.
In the Toolbox, expand Data, drag the DataGridView control to the form, and change the name of the control to courseGridView.
Double-click the closeForm button control.
This opens the code page for the form and creates the closeForm_Click event handler method.
In the closeForm_Click event handler method, type the following code that closes the form:
' Close the form. Me.Close()
//Close the form this.Close();
Next Steps
You have successfully created the course manager application. Next you will generate an .edmx file that contains model and mapping information based on a 1:1 mapping against the School database that you created in the first task:
Generating the School .edmx File