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
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.