When an MDI child form hosts one or more ActiveX controls, in certain cases this control prevents the form’s Load event from firing when the form is displayed by means of the Show method. We are investigating this problem, but in the meantime here are a few workarounds.
The simplest solution is that you host the ActiveX control inside a container, such as a Frame or a PictureBox control. In such a case, the Load event fires correctly.
Another simple workaround: you explicitly load the form before showing it. You can do it via an InsertStatement pragma, so that the VB6 code isn’t affected;
A minor problem with this workaround is that the Load event fires after the form has already become visible. To avoid this side-effect you can proceed as follows: set the MdiChild property to False before invoking the Show method and assign the MdiParent property inside the Form_Load event hander:
Private Sub cmdShowForm_Click()
Private Sub Form_Load() Handles MyBase.Load