Re: Input box pops behind email window



Am Wed, 1 Feb 2006 19:46:29 -0800 schrieb John Svercek:

Unfortunately you need to bring your window on top by code with the Win32
API SetWindowPos. That´s easier if you´re using a VB Form instead of the
InputBox, because for the latter it´s a lot of work to get the window
handle.

-- 
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
  -- www.vbOffice.net --


> I have created a Outlook Addin that creates buttons in the email window.
One 
> button pops an Input box so the user can enter information. This works
fine 
> when the Outlook email editor is used but if Wordmail is used the box pops
up 
> behind the email window, it seems to be associated with the main outlook 
> window rather than the email window.
> 
> I am using vb6 and Outlook 2003 (I have not tested 2000 or 2002 yet).
> 
> For completeness here is the code snippet that pops the box, nothing 
> mysterious there.
> 
> 
> ThisKey = InputBox("Enter the Key from JCS Technologies, Inc." _
>        & vbCrLf & "If you do not have a key you can obtain one at 
> www.JCSTechnologies.com." _
>        & vbCrLf & "--Or--" _
>        & vbCrLf & "You can select CANCEL to continue in un-registered 
> mode.", _
>        "Collaboration Addin for Outlook")
.