10.2.3.1   Basic Steps

Export

To export the program, use the menu FileExport Program... and select the language (Visual Basic .NET - HALCON/.NET). The created file with extension “.vb” contains the HDevelop program as Visual Basic .NET source code.

Using the Visual Basic .NET Template

If the file has been exported using the option Use Export Template, it is intended to be used together with the predefined Visual Basic .NET project that can be found in the directory

  %HALCONEXAMPLES%\vb.net\HDevelopTemplate

This project contains a form with a display window (HWindowControl) and a button labeled Run. Add the file generated by HDevelop to the project in the Solution Explorer (Add Existing Item). Now the project is ready for execution: Run the project and then press the button Run on the form, which will call the exported code.

Additional information about using the template can be found in the 程序员指南.