I'm doing an ActiveX UserControl. I want to terminate the execution of the VB project container of the control, from inside this UserControl.
How can I do it?
Printable View
I'm doing an ActiveX UserControl. I want to terminate the execution of the VB project container of the control, from inside this UserControl.
How can I do it?
You mean like...close the program that the UserControl is part of?
Good luck!Code:On Error Resume Next
Unload UserControl.Parent
Be aware of that the code I submitted won't stop the execution of the application. It will merely unload the form that the control belongs to.
If you have other forms loaded the application will not be terminated.
Thanks Joacim!