Getting Started
Installation
Before you get started, the last version of the Pegasus.Net SDK must be downloaded from the developer section of the Pegasus web site.
The SDK setup installs the following components:
- Win32 pen driver binaries, in "Program Files\Common Files\Pegasus Shared\" folder.
- The PegasusClassLibrary.dll in the GAC.
- All other files and sample code are located at the installation folder.
The first program
To begin using the PegasusPen component follow the following steps:
- Open Visual Studio, and create a new Windows Forms Application project.
- Open the Visual Studio Toolbox. Right click anywhere on the toolbox and from the displayed menu, select the [Choose Items...] entry. A list of .Net Framework Components is displayed. Navigate to PegasusPen component and check it's associated CheckBox. Press Ok. The PegasusPen component, should now appear in the Toolbox Components Tab.
- Put a PegasusPen component on the form.
- Connect a Pegasus Pen or compatible Digital Pen, to the USB port.
- Put a new Button control on the form. On its Click event, write the following code:
pegasusPen1.Enabled = true;
All available properties event and methods are now available through the PegasusPen component.
For more sample code, see the Samples folder in the SDK installation folder, and the Samples section in the documentaion.