metalmibvbnet
Programmer
Hi,
I have a form created with Windows Media Player Box and I'm trying to make it so that when the program loads, the video will run automatically. If I set the URL to the absolute file path of the video, it runs fine, but I will be sending this to others so I'd like to run it from the relative file path, the only problem is that if I set the URL to the relative file path, I get... "Exception from HRESULT: 0xC00D132B". Anyone know what I can do to get around this? Using Visual Studio 2005.
Mediabox.URL = "C:\Visual Studio 2005\Projects\Myproject\Myproject\files\video.wmv"
above(absolute path works fine)
Mediabox.URL = "..\..\files\video.wmv"
Doesn't work(relative path is correct, works when i'm loading other file types for other parts of program!)
I'm very new to programming, so I've been trying other ways to get this to work...For instance, using an Openfiledialog, I have it so that all you have to do is hit enter(once the actual showdialog occurs), but is there a way to 'hit enter' from the code to the openfiledialog box? That would be amazing! Any help would be much appreciated!
I have a form created with Windows Media Player Box and I'm trying to make it so that when the program loads, the video will run automatically. If I set the URL to the absolute file path of the video, it runs fine, but I will be sending this to others so I'd like to run it from the relative file path, the only problem is that if I set the URL to the relative file path, I get... "Exception from HRESULT: 0xC00D132B". Anyone know what I can do to get around this? Using Visual Studio 2005.
Mediabox.URL = "C:\Visual Studio 2005\Projects\Myproject\Myproject\files\video.wmv"
above(absolute path works fine)
Mediabox.URL = "..\..\files\video.wmv"
Doesn't work(relative path is correct, works when i'm loading other file types for other parts of program!)
I'm very new to programming, so I've been trying other ways to get this to work...For instance, using an Openfiledialog, I have it so that all you have to do is hit enter(once the actual showdialog occurs), but is there a way to 'hit enter' from the code to the openfiledialog box? That would be amazing! Any help would be much appreciated!