To Create a Modeless Form in a Project (VBA)

Modeless dialog boxes allow a form to remain displayed while the user interfaces with the drawing area, similar to a floating palette.

  1. Open the Project window of the VBA IDE and select the project you want to add the form to.
  2. From the Insert menu, choose UserForm, and change the ShowModal property to False.
  3. Add the AcFocusCtrl (AcFocusCtrl.dll) to the Toolbox, and drag the control onto the form.

    The AcFocusCtrl keeps the focus on the form during user interaction.