Thread: MsgBox Hidden
View Single Post
  #3  
Old April 10th 07, 09:06 AM posted to microsoft.public.outlook.program_vba
Lionel H
external usenet poster
 
Posts: 7
Default MsgBox Hidden

Eric, thanks for the reply. It will probably help sort out my next problem!
Shortly after I posted the query, I found the WindowState property of the
Inspector object. So before calling the MsgBox function I set
ActiveInspector.WindowState = olMinimised. This worked fine and I could see
the MsgBox dialog box OK. All I had to do then was restore the
ActiveInspector on receipt of the yes/no response. olHelp says nothing about
the possible values for WindowState beyond admitting their existence.
olMaximised and olMinimised are self explanatory, leaving me to guess at the
meaning of olNormalWindow. I chose to assume its use would Restore the
ActiveInspector to its position prior to minimization. It didn’t. There was a
flicker as the ActiveInspector climbed out of the task bar, flew up the
olExplorer window and disappeared off the top of the screen. The next time I
clicked the New button on the explorer, I got a minimized Inspector in the
top left hand corner of the screen. At which point I set the recovery
WindowState to olMaximised and waited for a (your) response.


"Eric Legault [MVP - Outlook]" wrote:

That's odd behaviour for a dialog! It shouldn't be happening, but the only
way to control this is via methods like SetForeGroundWindow or SetWindowPos
via the Win32 API:

SetWindowPlacement Function:
http://msdn.microsoft.com/library/en...asp?frame=true


Ads