Visual Basic Shockwave Flash Object

Have you ever wanted to post Youtube videos or allow your users to submit youtube videos in your application?
This tutorial will show you how you can put youtube videos in your application by using the Shockwave Flash Object.

  1. Open Visual Basic and create a new Windows Forms Application
  2. In your Toolbox scroll down to the Components section
  3. Right click anywhere in the Components section and click Choose Items
  4. In the Choose Items dialog click on the COM Components tab
  5. Scroll down until you see Shockwave Flash Object, select it
  6. Choose Items

    Choose Items

  7. Click OK, you should now see Shockwave Flash Object component in your Components section
  8. Drag the control out on to your Form, it should look like a White box
  9. Flash Object

    Flash Object

  10. Go to Youtube and search for a video, click on the title of the video to watch that video
  11. You will notice the url (eg. http://www.youtube.com/watch?v=jdbqtv-5H_U)
  12. Replace watch?v=[ID] with v/[ID] so the complete URL would look something like this (using the link above)

  13. Copy it (you can use the one above as a example)
  14. Go back to your Visual Basic and with your Shockwave Object selected go into your Properties and scroll down to where it says Movie.
  15. Paste the URL you copied into that field and hit Enter on your keyboard.
  16. You will now see the youtube video player and thumbnail to that video on your form.
  17. Video On Form

    Video On Form

Once you debug your application (F5 on your keyboard) you will see the video appear.
I have not yet tried other video websites so feel free to experiment with other video websites.
You could probably create your own Video based program where users can watch videos from their desktop or something.

Video Playing

Video Playing

0saves
If you enjoyed this post, please consider subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply

Donations

Donations help to produce more content, more and better video tutorials

Youtube Channel Of The Week

JD Site Care chose
GoVisualTeam

Advertisement