App auto close and open
Hi Specialist:
Please let me indicate the objective. I try to click the button in "Appwebexample" and it can automatically close "Appwebexample" and open "App1" and "App6".

I tried to look for some posts about it and I collected several below. The close and open now works well. But the close manipulation seems not as graceful as the open one. Does someone have new idea about closing? Thank you.
Open:
The reference link:
https://forums.mediacy.com/discussion/comment/1308
https://forums.mediacy.com/discussion/700
https://forums.mediacy.com/discussion/212
Please let me indicate the objective. I try to click the button in "Appwebexample" and it can automatically close "Appwebexample" and open "App1" and "App6".

I tried to look for some posts about it and I collected several below. The close and open now works well. But the close manipulation seems not as graceful as the open one. Does someone have new idea about closing? Thank you.
Open:
Public Function Macro1() As SimpleScript Macro1 = New SimpleScript With Automate.ScriptingCommands.AppGadget(Macro1) .AppFile = "Project1>App1.vb" .Run() End With End FunctionClose:
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
The reference link:
https://forums.mediacy.com/discussion/comment/1308
https://forums.mediacy.com/discussion/700
https://forums.mediacy.com/discussion/212
0
Answers
-
2022-02-15-185209StanleyH --I have never tried to open APP 1 then open APP 2 and have APP 2 close APP 1 then open APP 3.I have a couple of projects where APP 2 will talk to APP 1 and use some of the APP 1 FEATURES.Can you provide a bit of information about what your goal is.Thanks.-- Matt
0 -
Hi Matt:
Thanks for your reply. At moment, I have a camera live view on the right and app interface on the left. As there is no more room to carry element such as listbox or button in an app, I prepare another app. In order to ensure the live view as the high priority, I tried to close one app and open another one if button triggered. I hope the goal is enough clear. Thank you.0 -
2022-02-21-113937StanleyH --Consider using the TABCONTROL in the design of your APP INTERFACE. That would allow you to have something like a CONFIGURE TAB and an OPERATE TAB so that you can use the APP INTERFACE AREA for multiple purposes.I have put a SCREEN CAPTURE from one of the APPS that I have created below.This SCREEN CAPTURE was done during DEVELOPMENT and TESTING but I believe it illustrates how you can use the TAB CONTROL to make use of the SCREEN AREA allocated for your APP INTERFACE.I hope this information is helpful.-- Matt
0 -
Thanks Matt for your kind information, your app looks very great.0
-
2022-02-22-145346StanleyH --You are welcome.Thank you for the compliment.Writing APPS for IMAGE-PRO PLUS and IMAGE-PRO has been a large part of my professional life and my services are available to companies that do not have programmers on their staff.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