i have an app that has no UI, no forms at all, but sometimes presents a messagebox

sometimes the messagebox present over the top of all windows (desired effect)
but most times is just in the taskbar

suggestions for best method to always get the desired effect