Closing an APP from within the CODE . . .
All --
I would like an APP to close if certain conditions are met.
I would like the CODE to be able to "X" out of the APP like I can on the APP TITLE BAR.
How can I (gracefully) close an APP from within the CODE?
Thanks.
-- Matt
I would like an APP to close if certain conditions are met.
I would like the CODE to be able to "X" out of the APP like I can on the APP TITLE BAR.
How can I (gracefully) close an APP from within the CODE?
Thanks.
-- Matt
0
Best Answer
-
Hi Matt,
This code will close app:Private Sub button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles button1.Click McApplication.ThisApplication.Panels.Remove(Me.Control.Parent.Parent) End Sub Thanks, Nikita.
0
Answers
Thank you for the response and the example code it contains.
That works great.
Thanks again.
-- Matt