Griaule Biometrics

Home » Creating an Access Control System using VB.2008 and Fingerprint SDK - VB project

Creating your Visual Basic project

First of all we need to create a new project to hold our application. Proceed as follows:

  1. Click File New project…
  2. Select Windows Forms Application template;
  3. Set name to AccessControl;

  1. Click OK.

You now have an empty project containing an empty form. It will look something like this:

Leave your project as it’s now – we’ll return to it later.

Adding required components

To work with GrFinger SDK, you need to add the required component to our application. Proceed as follows:

  1. Click Project Add reference…
  2. Holding your Ctrl key, select “GrFingerX Control Library”:

 

  1. Click OK.  

Adding your database

The next step now is to add the database you created as a data source to your project. Proceed as follows:

  1. Open your project if it’s not open already;
  2. Click Data Add new data source…
  3. On Data Source Configuration Wizard choose Database and click Next:

 

  1. On the next window, choose New connection:

  1. Since your database was created in MS Access, your Data Source must be Microsoft Access Database File (OLE DB). If it’s not, click Change… and change it to the correct one:

  1. Click Browse… and look for the MS Access file you created on the previous step.
  2. Click Test connection to verify that the connection is working and click OK.
  3. Click OK and return to Data Source Configuration Wizard.
  4. Click Next and the option box below will appear:

  1. Ensure that you understand this behavior (press F1 if necessary) and click Yes (you can change this behavior later).
  2. Check your connection string and ensure that you’ll save it:

  1. Select all tables on your dataset, check your DataSet name (you'll need this information later) and click Next:

  1. Click Finish.

Your data source is now available to your project. If you’re not able to see them, click Data Show data sources:

Changing your database connection behavior

To change the behavior described on task 8, proceed as follows:

  1. On Solution Explorer tab, select your database file:

  1. Right click it and choose Properties.
  2. Change the Copy to Output Directory property to Copy if newer. This will copy the original database to your project only if the database was changed.

  1. Save your project.

Your data sources are ready to be used in your project.