Form Question

Hello,

I have a Main form, that opens on the start of my program and stays open through the whole program.

Once you click on a certain step, it pops open a sub-form. My problem is when you close out of the

sub-form, by using the top right X, it also closes out the main form, which I do not want.

How do I prevent this from happening?

SolidworksApi/macros