Creating the Windows Forms Application

In this task, you will create the Windows application by using Visual Studio 2008.


  1. On the File menu, click New Project.

  2. Choose either Visual Basic or Visual C# in the Project Types pane.

  3. Select Windows Forms Application in the Templates pane.

  4. Enter AspectizeDALDemo for the project name, and then click OK.


  1. In Solution Explorer, right click AspectizeDALDemo project, and choose Add Reference...
  2. Select Browse Panel and pickup AspectizeDAL.dll file.
  3. In the AspectizeDALDemo project, select the default form (Form1).
  4. In the File Properties pane, change the File Name to AspectizeDALDemo.vb or AspectizeDALDemo.cs.

  5. In Solution Explorer, double-click AspectizeDALDemo.vb or AspectizeDALDemo.cs to open the form.

  6. In the Properties pane, change the Name property to AspectizeDALDemo, and change the Text property to AspectizeDALDemo.

  7. In the Toolbox, expand Common Controls, drag a ComboBox control to the form, and change the name of the control to lstProductCategory.
  8. In the Toolbox, expand Common Controls, drag a ComboBox control to the form, and change the name of the control to lstProductSubcategory.
  9. In the Toolbox, expand Data, drag the DataGridView control to the form, and change the name of the control to dgvProduct.

 

Next Step: Import the AdventureWorks Entity Schema

 

Back to QuickStart Home Page