Building a deployment library

In a DataWindow .NET application, you can use a library (PBL) or deployment library (PBD) as the source of your DataWindow objects. If your users have DataWindow Designer, PowerBuilder, or InfoMaker, they can open PBL files and copy or modify the objects in them. They cannot copy or modify the objects in a PBD file. A PBD file is also smaller than a PBL file.

When you are ready to deploy your application, build a deployment library and change the LibraryList property of each DataWindowControl or DataStore to reference the PBD file instead of the PBL. Along with the executable file for your application, you need to deploy some additional files.

For a list of the files you need to deploy and some techniques for deploying applications, see Chapter 13, “Deploying DataWindow .NET Applications.”

For where to deploy files, see “Deploying Windows form applications”.

StepsTo build a deployment library:

  1. Right-click on the project file in the System Tree and select Build Deployment from the pop-up menu.

The Windows form tutorial is complete

This is the last section in the Windows form tutorial. The next section tells you how to build an ASP.NET Web application.

You can continue to modify and enhance the Windows solution. For example, you could add code to make sure that all changes have been made correctly when you close the application, add a button that inserts a new row into the database, or modify the form to use an AdoTransaction object instead of a Transaction object. For more complete sample applications in Visual Basic and C#, see the Sybase CodeXchange Web site and the Code Examples subdirectory in your DataWindow .NET 2.0 directory.