Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way to exit from ActiveX
Message
De
11/06/2001 00:59:24
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Proper way to exit from ActiveX
Divers
Thread ID:
00517637
Message ID:
00517637
Vues:
52
Hi,

I had this simple question on using VB6 with ActiveX control.
My application had a form with an ActiveX control placed on it.

When my application ActiveX trigger an error, my error handle will
catch it, and I need to exit the whole application as it is not allow to resume
to the next instruction. Using unload me will not exit the form at all,
resulting in my application 'disappearing' from the screen but still
in memory.

Do I use end instruction to exit the whole program in the ActiveX error procedure to exit ?
However, I read from book that end instruction is not a good way to properly
exit a application as it will not allow the form to call it unload and
other events at all.

So, when my application encountered a error, I want my application to
terminated without using end instruction and properly exit the form
and then terminate the application.

Hence, how should I exit from the activex control error procedures,
then return to my form and exit. Please advise with example code.

Thank in advance.
Best Regards
Virusim
Répondre
Fil
Voir

Click here to load this message in the networking platform