5 Replies - 1382 Views - Last Post: 22 October 2012 - 06:06 AM Rate Topic: -----

#1 ANSAYLOR  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 05-August 12

Code for Shockwave Flash in VB2010 giving an error

Posted 21 October 2012 - 06:43 PM

Hi!
My goal for the code I've written is to allow the user to enter a URL into a text box, which then downloads the video and plays it in a Shockwave Flash box.
This is the code for my Download button:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        If TextBox2.Text = ("http://www.youtube.com/watch?v=cgwxXKsZhAo") Then
            Process.Start("http://www.youtube.com/watch?v=cgwxXKsZhAo")
            AxShockwaveFlash1.Movie = TextBox2.Text
        End If
    End Sub

I've tried to do this with a picture box as well, but cannot get a video to display in a picture box either.
Any suggestions?
Thank you!

Is This A Good Question/Topic? 0
  • +

Replies To: Code for Shockwave Flash in VB2010 giving an error

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10809
  • View blog
  • Posts: 40,294
  • Joined: 27-December 08

Re: Code for Shockwave Flash in VB2010 giving an error

Posted 21 October 2012 - 06:46 PM

Moved to VB.NET.
Was This Post Helpful? 0
  • +
  • -

#3 ANSAYLOR  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 05-August 12

Re: Code for Shockwave Flash in VB2010 giving an error

Posted 22 October 2012 - 05:44 AM

Hi!
My goal for the code I've written is to allow the user to enter a URL into a text box, which then downloads the video and plays it in a Shockwave Flash box.
This is the code for my Download button:
	Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
	        If TextBox2.Text = ("http://www.youtube.com/watch?v=cgwxXKsZhAo") Then
	            Process.Start("http://www.youtube.com/watch?v=cgwxXKsZhAo")
	            AxShockwaveFlash1.Movie = TextBox2.Text
	        End If
	    End Sub


I've tried to do this with a picture box as well, but cannot get a video to display in a picture box either.
Any suggestions?
Thank you!
Was This Post Helpful? 0
  • +
  • -

#4 torind_2000  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 57
  • View blog
  • Posts: 292
  • Joined: 22-August 11

Re: Code for Shockwave Flash in VB2010 giving an error

Posted 22 October 2012 - 05:55 AM

Try this.
Was This Post Helpful? 1
  • +
  • -

#5 ANSAYLOR  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 05-August 12

Re: Code for Shockwave Flash in VB2010 giving an error

Posted 22 October 2012 - 05:59 AM

Thank you torind_2000!
Was This Post Helpful? 0
  • +
  • -

#6 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10809
  • View blog
  • Posts: 40,294
  • Joined: 27-December 08

Re: Code for Shockwave Flash in VB2010 giving an error

Posted 22 October 2012 - 06:06 AM

Duplicate threads merged. Please avoid duplicate posting.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1