“选择文件夹"即使Outlook已打开,由Namespace.PickFolder调用的弹出窗口也应显示在源窗体上方. [英] "Select Folder" popup which invoked by Namespace.PickFolder should be shown above the source form even though the Outlook is already opened.

查看:230
本文介绍了“选择文件夹"即使Outlook已打开,由Namespace.PickFolder调用的弹出窗口也应显示在源窗体上方.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Namespace.PickFolder对象检索Outlook文件夹的路径,例如:"\\ Personal Folders \ Inbox"

如果我没有打开Outlook,当我尝试从表单(源表单)启动选择文件夹"对话框时,将在源表单上方打开弹出窗口.但是如果我在启动选择文件夹"之前打开了Outlook对话框,它将源窗体最小化,并打开了Outlook上方的弹出窗口.

但是,即使Outlook已打开,我也需要在源表单上方显示选择文件夹"弹出窗口.

I used the Namespace.PickFolder object to retrieve the path of an Outlook Folder eg: "\\Personal Folders\Inbox"

In case i did not open outlook, When i try to launch the "Select Folder" dialog from a form(Source Form) it is opened the popup up above the source form .But if i opened the outlook before launching the "Select Folder" dialog it is minimizing the source form and it opened the popup up above outlook.

But i need the "Select Folder" popup should be shown above the source form even though the Outlook is already opened.

推荐答案

您需要检索Outlook的zorder窗口,然后使表单的zorder更高(增加1).

不,我不确切知道您将如何执行此操作,但是我敢打赌它涉及互操作性服务.

我不能保证这会成功,但是可以尝试.

Google是您的朋友.
You need to retrieve the zorder of the outlook window, and make your form''s zorder to be higher (by 1).

No, I don''t know exactly how you would do this, but I would bet it involves interop services.

I cannot guarantee this will work, but it''s something to try.

Google is your friend.


这篇关于“选择文件夹"即使Outlook已打开,由Namespace.PickFolder调用的弹出窗口也应显示在源窗体上方.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆