How to create a form with a modal child form
This tip is about defining a form in a macro project which then calls and display a modal child form.
The main steps are:
- Add the parent form to your project using "Add New Form" in the Project Explorer panel of the Scripting Workbench.
- Add the child form the same way, change its property "Show In Ribbon" to False.
- Create a button on the parent form and double-click on it to define its code.
- Enter the code below.
Private Sub button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles button1.Click Dim child As New ChildForm child.Form.ShowDialog(MyForm) End Sub
0
Comments
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