we have a weird requirement where our apps executed in the Sandbox environment are manipulated by some other app. The outer app modifies the visual style of the windows using ShowWindow() of the user32 dll. When a .net app with MODAL windows opened is Minimized and maximized by the Outer app, it loses all the modal windows which were opened by us. BUT a vb6.0 app on minimize and maximize retains the modal windows!!
frankly Am not sure at this point to call the requirement weird or the behavior of .net framework weird!! ;)
http://social.msdn.microsoft.com/Forums/en/vclanguage/thread/c2530a00-19d5-4414-87a6-e3359bd6d5ca
The msdn blog post does thro lil light on this area but never explains why its so! or if and how we can retain the Modal windows even on a minimize!