Window iconised problem

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
 
J

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
 
J

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top