08-04-2011, 01:43 AM
(08-04-2011, 01:38 AM)Ace Wrote: Here's what I did as a test project:
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.
Interop.ShockwaveFlashObjects.dll
AxInterop.ShockwaveFlashObjects.dll
Both of those are in the debug folder, what would I do from here now that we know the cause?