To create Visual Basic .Net Form, Book.vb
 
 
 

        The Form  design, Book.vb

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


    Create Visual Basic .Net Forn - Book.vb

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

 

 Create the Form  - Book.vb
1- Add  The Access file - KJV2002.mdb
 
  1. From the CD-Rom - Teach_VNet, copy  the DataBase file KJV2002.mdb (\\APP-VBNet\Pic\KJV2002.mdb ) to the
    folder - c:\APP-VBNet\Pic
  2. On the Projet menu , click Add Existing Item ..., Add Existing Item - APP-VBNet dialog box appears, select the file KJV2002.mdb  of the folder c:\APP-VBNet\Pic, and then click Open.
     

2- Create the Form book.vb
 

  1. On the View menu , click  Solution Explorer
  2. In Solution Explorer, right click the APP-VBNet, select Add on the shortcut menu to open other shortcut menu, click  Add New Item, the Add New Item - APP-VBNet dialog box appears.
  3. In the  Add New Item -APP-VBNet 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-VBNet\Pic\KJV2002.mdb.
      • A data adapter .
      • A typed dataset to hold the records fetched from the database
         
    3. In the Name box, type Book.vb
    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