why the ZOrder is changed automatic?

i have 2 forms and 1 messagebox.
if the messagebox isn't showed, i can close the 2 forms without problems. if i use a messagebox, i can close the 1st form, but the other form is ZOrder is changed even other program is getting the focus and activated. why these happens?
Topic archived. No new replies allowed.