Window iconised problem

  • Thread starter Thread starter Jeff Mowatt
  • Start date Start date
J

Jeff Mowatt

I have an OLE object (my own) which I'm loading from the script of a
custom form with a button click event. Everything works fine, except
for the first time the object is used when the window I'm trying to
show() is always iconised.

It makes no difference if I show() from the app itself or include it
in the vbscript.

My app window seems to somehow be obstructed by the outlook form, I
say this because outside outlook I can build a test program to call it
and it opens normally every time. It seems as if Outlook is preventing
my window from gaining focus.

Is there something I can do in Outlook vbscript to suppress this,
maybe?

Regards,

Jeff Mowatt
 
Ah, I think I have the answer to my own question. The publication
Building Applications with Microsoft Outlook 2000 has a section on COM
objects which warns that one should not attempt to show a modal window
from any COM object used within Outlook. So I guess the same applies
to my modal window in an OLE object.

What seems to happen is that the modal window is displayed and then
the form page refreshes over the top of it, making it iconised on the
taskbar. I need to make it modeless I guess.

Jeff Mowatt
 
Ah, I think I have the answer to my own question. The publication
Building Applications with Microsoft Outlook 2000 has a section on COM
objects which warns that one should not attempt to show a modal window
from any COM object used within Outlook. So I guess the same applies
to my modal window in an OLE object.

What seems to happen is that the modal window is displayed and then
the form page refreshes over the top of it, making it iconised on the
taskbar. I need to make it modeless I guess.

Jeff Mowatt
 
Back
Top