08-04-2011, 01:38 AM
(This post was last modified: 08-04-2011, 01:41 AM by AceInfinity.)
Here's what I did as a test project:
Code on Form1:
Code on Form2:
You know why it's not working? Because you have reference DLL's in the Debug folder for the shockwave object. That you need with the program. In debug mode it runs the application from the Debug folder. Exactly like what I guessed before lol, you need to keep those references with the .exe for it to work. There should be 2 dll's.
Code on Form1:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.show()
End Sub
Code on Form2:
Code:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim VideoLink As String = "http://www.youtube.com/watch?v=JeJ6-gN0eB4"
Dim VideoID As String = VideoLink.Replace("/watch?v=", "/v/")
MyVideo.Movie = VideoID 'MyVideo is the shockwave object name
End Sub
You know why it's not working? Because you have reference DLL's in the Debug folder for the shockwave object. That you need with the program. In debug mode it runs the application from the Debug folder. Exactly like what I guessed before lol, you need to keep those references with the .exe for it to work. There should be 2 dll's.