TaskPane does not draw, appears blank

旧巷老猫 提交于 2019-12-25 03:32:58

问题


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.

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).

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

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


回答1:


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

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.



来源:https://stackoverflow.com/questions/5723444/taskpane-does-not-draw-appears-blank

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!