|
Play an Avi-file in Visual Basic.Net |
|
|
|
|
Written by J. Bijvoets
|
|
Tuesday, 23 November 2010 20:34 |
How to play an avi-file in Visual Basic 2010?
It should be quite simple to show an Avi-file in Visual Basic.net, using the Windows Media Player Object. Let me see, Start a new Visual Basic Forms project, go to the toolbox, add the control for the Windows Media Player, ... oh. Where can I find the control in the toolbox to use this object in Visual Basic &^%!^?
Adding the Windows Media Player to your Visual basic.Net application
Actually it is simple to use this Media Player Object: go to the toolbox, click right, click on Choose Items..., select tab COM Components , find the Windows Media Player Control, Check it, close the dialog and find the control in the Components part of your Toolbox!

Using the Media Player in your code.
After you draw a Media Player Control to your form, you can use it by it's properties and methods. Set the URL-method to some file, and call the Show()-method to play the file. If you want to play the file full screen, set the Fullscreen property to True.
|
|
Last Updated on Wednesday, 24 November 2010 21:18 |