If you use the code explained in the other thread and you put this code right behind:

frmMain.setfocus

your form will get the focus and be on top. After that you can use the .show command