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
-
Nikita --
Thank you for the response and the example code it contains.
That works great.
Thanks again.
-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions