Catching An Error

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

Hello,

I have made an application that has a Shock Control on it. I have two
applications one in VB.NET and the other in VB 6.0. If Shock is installed
on the Install Computer the application runs great, But if it does not I
receive the following error: Cannot Load Custom Control. What I am looking
for is a way to catch this error in both applications. If I can catch it
then the response to the error will be installing shock.

Thanks
Chuck
 
Charles,

* "Charles A. Lackman said:
I have made an application that has a Shock Control on it. I have two
applications one in VB.NET and the other in VB 6.0. If Shock is installed
on the Install Computer the application runs great, But if it does not I
receive the following error: Cannot Load Custom Control. What I am looking
for is a way to catch this error in both applications. If I can catch it
then the response to the error will be installing shock.

Does Shock install an ActiveX control or another library on which the
other application depends on? Please give us more information.
 
Hello,

I am using the Shockwave Flash Object from Visual Studio.Net which is
located inside Windows\System32\Macromed\flash\Flash.ocx

I believe the error happens when Form1 attemps to initialize because it
cannot find the Shock dependancies.

I have simply dragged and dropped the control onto a form and changed the
properties inside the form load event.

Thanks,

Chuck
 
* "Charles A. Lackman said:
I am using the Shockwave Flash Object from Visual Studio.Net which is
located inside Windows\System32\Macromed\flash\Flash.ocx

I believe the error happens when Form1 attemps to initialize because it
cannot find the Shock dependancies.

I have simply dragged and dropped the control onto a form and changed the
properties inside the form load event.

You will have to make sure the control is installed, for example, by
adding it to the setup which is used to install your application.
VS.NET comes with a Setup wizard, in VB.NET Standard you will have to
create the setup package from a setup template. Remember to make sure
that you are allowed to redistribute the component.
 
Back
Top