Home Image-Pro Automation (Macros, Apps, Reports)

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:
  1. Add the parent form to your project using "Add New Form" in the Project Explorer panel of the Scripting Workbench.
  2. Add the child form the same way, change its property "Show In Ribbon" to False.
  3. Create a button on the parent form and double-click on it to define its code.
  4. 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
    End Sub


Sign In or Register to comment.