TaskPane 不绘制,显示为空白 [英] TaskPane does not draw, appears blank

查看:21
本文介绍了TaskPane 不绘制,显示为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行 Outlook 2007 的 Windows 7 系统中发现了模态检查器的一个非常具体的问题.我正在开发一个插件,将功能区按钮和 UserControl(以任务窗格的形式)放入电子邮件撰写窗口.

I discovered a very specific issue with modal Inspectors in Windows 7 systems running Outlook 2007. I'm developing an addin that places a ribbon button and UserControl (in the form of a taskPane) into the email-compose window.

问题是:使用该特定设置(Outlook 2007 已经运行),当用户尝试从外部启动电子邮件撰写窗口时(这可以通过 Adob​​e Reader 或许多其他应用程序中的通过电子邮件发送").

The issue is: with that specific setup, (with Outlook 2007 already running) when the user attempts to launch an email-compose window externally (this can be through 'send via email' in Adobe Reader or many other applications).

出现在表单右侧的 TaskPane 有半随机的机会不绘制而只是显示为空白.

The TaskPane that appears appended to the right-side of the form has a semi-random chance to not draw and simply appear blank.

我已经准备了一个示例解决方案,它可以减少所有不必要的脂肪,如果您查看 bin>debug 文件夹,有一个准备运行的示例来演示该问题

I have prepared a sample solution that trims down all the unnecessary fat, if you look in the bin>debug folder, there is a ready-to-run sample to demonstrate the issue

http://www.mediafire.com/file/ctmsbba09n6u0vp/MissingPaneExample.zip

推荐答案

如果它绘制为空白,如果您调整自定义任务窗格的大小,它会绘制吗?

If it draws blank, will it draw if you resize the custom task pane?

我在某些情况下无法绘制它时遇到了问题,我的工作是放置一个 this.Width++;在控件的加载事件中,相当不错,但过去对我有用.

I have had issues around it not drawing in certain scenario's, and my work around has been to put a this.Width++; in the load event of the control, quite a hack, but has worked for me in the past.

这篇关于TaskPane 不绘制,显示为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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