How to Connect Video in VB.NET
The Visual Studio software lets you create VB.NET applications including video connections. You use the Microsoft Media Player control to connect to a video, and stream the video in your Web pages. The control is included with your .NET programming compiler, so you need only add the control to your Web form and point to the location of the video to connect to it.
Instructions
-
-
1
Click the Windows "Start" button, and select "All Programs." Click "Microsoft .NET Framework," then click "Visual Studio" to open the software. After Visual Studio opens, open your VB.NET project.
-
2
Drag and drop the Media Player control from the toolbox to the VB.NET Web form. Notice a black box is drawn in the form, which represents the size and location of the video. Use your mouse to move the video to the location where you want to display it, and size the video to the size you want to display.
-
-
3
Double-click the video to open the VB.NET code. Type the following code to add the location of the video:
player.URL = "c:\myfile.wmv"
Replace the location with the path and file name of your own video. You can also use an external website's video location.
-
4
Click the "Save" button, and click "Run" to run the code in the debugger. The debugger lets you test the video and view the code in your default browser.
-
1