Set the secondary form owner to the main form. For instance, if you have created another form you do this: frmMyOtherForm->Owner = this;