Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - AppForge Programming » Understanding UltraLite Development with AppForge » Preparing to use UltraLite for AppForge

Adding UltraLite to the MobileVB design environment Next Page

Adding UltraLite to the Crossfire design environment

Although the SQL Anywhere installer automatically adds UltraLite to your Crossfire design environment, there are cases where you may have to add UltraLite to the environment manually. For example, if you install Crossfire after you install SQL Anywhere, you may need to carry out this procedure.

To find out if you need to add UltraLite to Crossfire, check that a new Crossfire project includes a reference to iAnywhere.UltraLiteForAppForge. If it does not, you need to add UltraLite to the environment. Also, check if the ULConnectionParms class appears in the AppForge panel of the toolbox. If it does not, you need to add UltraLite to the environment.

To add UltraLite references and controls to your Crossfire project
  1. Register UltraLite for MobileVB with Crossfire.

    1. Ensure that Crossfire is closed.

    2. Open a command prompt and run the following command:

      ulafreg -r

      See UltraLite AppForge Registry utility (ulafreg).

    3. If you have upgraded a MobileVB project remove the reference to UltraLiteAFLib from the Visual Basic.NET Solution Explorer.

    4. Add a reference to iAnywhere.UltraLiteForAppForge.dll

      1. From the Microsoft Development Environment menu, choose Project > Add Reference and browse to the install-dir\ultralite\UltraLiteForAppForge\win32 subdirectory of your SQL Anywhere installation.

      2. Select iAnywhere.UltraLiteForAppForge.dll and click Open.

      3. Click OK to add the reference.

  2. Add the ULConnectionParms control to the AppForge toolbox.

    1. In the Microsoft Development Environment, right click the AppForge toolbox and choose Add/Remove Items. A dialog appears.

    2. Click the COM Components tab.

    3. Scroll down to the entry named ULConnectionParms Class. Check the box beside this component and click OK.

    4. The ULConnectionParms control is added to the toolbox.