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