Write a video player application with VideoLab or VisionLab using C#, VB.NET, J# or C++/CLI


This is a step by step tutorial for writing a simple video player in .NET by using VideoLab or VisionLab. The steps are exactly identical in C#, Visual Basic .NET, C++/CLI and J#.

There is no code writing necessary to complete this application.

There is no need to know C#, Visual Basic, J# or C++ in order to create this application.



The tutorial covers the following steps, which should take less than two minutes:

1. Add an AVIPlayer Component to Your Application's Form:


2. Add an ImageDisplay Control to Your Application's Form:


3. Set the ImageDisplay Control's Properties:

3.1 Arrange you form to look similar to this:


3.2. Set the ImageDisplay Control’s Anchor property to “Top, Bottom, Left, Right”:


4. Select file to play in the AVIPlayer Component:

4.1. Double-click on the aviPlayer1 component on the form:


4.2. Select a file to play, and click “Open”:


5. Connect the AVIPlayer.OutputPin to ImageDisplay.InputPin:

5.1. In the aviPlayer1 Properties select OutputPin and click on the DottedButton button:


5.2. In the connection editor check the InputPin of the ImageDisplay1 and click OK:


6. Run the Application:

9.1 Press (F5) to run the application. You should see the video playing: