To create Visual C# .Net Form, BookForm.cs
 
 
 

        The Form  design, BookForm.cs

 
 1st TabPage selected of  TabControl control..
 
2nd TabPage selected of  TabControl control..
 


    Create Visual C# .Net Forn - AboutForm.cs

 
 Classes used in this Form:
         OleDbConnection, OleDbDataAdapter
OleDbCommand, DataSet, PictureBox,  Label, TextBox, Button, TabControl, ListView, ComboBox,  RichTextBox

 

 Create the Form book - BookForm.cs
1- Add  DataBase file - KJV2002.mdb
 
  1. From the CD-Rom - Teach_VNet, copy  the DataBase file KJV2002.mdb (\\App-VCSNet\Pic\KJV2002.mdb ) to the
    folder - c:\App-VCSNet\Pic
  2. On the Projet menu , click Add Existing Item ..., Add Existing Item - App-VCSNet dialog box appears, select the file KJV2002.mdb  of the folder c:\AppP-VCSNet\Pic, and then click Open.
     

2- Create the Form book
 

  1. On the View menu , click  Solution Explorer
  2. In Solution Explorer, right click the App-VCSNet, select Add on the shortcut menu to open other shortcut menu, click  Add New Item, the Add New Item - App-VCSNet dialog box appears.
  3. In the  Add New Item -App-VCSNet dialog box:
    1. In the Categories pane, select Local Project Items
    2. In the Templates pane, select Data Form Wizard . A message appears  - (a form for Windows Applications).

      Note:
      The Data Form Wizard create Windows Form with data-bound controls. The controls display data from any data source you specify. The data component for this form consists:
      • A connection to a data source-(her the datasource - C:\App-VCSNet\Pic\KJV2002.mdb.
      • A data adapter .
      • A typed dataset to hold the records fetched from the database
         
    3. In the Name box, type BookForm.cs
    4. Click Open, the Data Form Wizard dialog box appears.  
 

 

 Data Form Wizard  dialog box ...

 

 Add  picture files ...

 

 The following controls to ...


The codes  corresponding ...
 


 

 

Previous
  Home
4
 
Next