Hello,
I use a a flashcontrol in the Form application. If I have Flash installed on the computer, the control plays the movie fine.
If I uninstall the flash from the computer, I receive this error when opening the form.
I have tried to put this code inside a try{} catch(){} block to prevent this error but that did not help.
Is there any other idéa of how to prevent this error. If I take the code inside the try{} away, I dont receive the error so
it depends on this. Thanks!
Error:
HRESULT: 0x80040154(REGDB_E_CLASSNOTREG))
AxShockwaveFlashObjects::AxShockwaveFlash^ AxShockwaveFlash1 = gcnew AxShockwaveFlashObjects::AxShockwaveFlash();
String^ movieURL = "MovieURL...";
try
{
if( String::IsNullOrEmpty(movieURL) == false )
{
panel1->Controls->Add(AxShockwaveFlash1);
AxShockwaveFlash1->BackgroundColor = 0;
AxShockwaveFlash1->Movie = movieURL;
AxShockwaveFlash1->Base = movieURL;
AxShockwaveFlash1->AllowFullScreen = "false";
AxShockwaveFlash1->AllowScriptAccess = "sameDomain";
AxShockwaveFlash1->EmbedMovie = true;
AxShockwaveFlash1->Enabled = false;
AxShockwaveFlash1->Size = System::Drawing::Size(425, 55);
AxShockwaveFlash1->Location = System::Drawing::Point(1, 25);
AxShockwaveFlash1->Play();
}
}
catch(Exception^ ex){}