Slide animation when showing/hiding CustomTaskPane in VSTO

狂风中的少年 提交于 2019-12-08 17:55:35

It's the default behavior beginning with Excel 2013, that the task panes slide in / out. But this can be disabled in the registry, see Disable Excel 2013 cell animation:

Please check that the registry setting is set to "DisableAnimations = 0"

Then all your custom task panes should be slided in / out when setting visible true / false.

To achieve this you need to install KB3114383. With this KB installed, you can disable animations only for Custom Task Panes by changing the following registry key (depending on you your Microsoft Office version: 15.0 = 2013, 16.0 = 2016):

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Toolbars
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Toolbars

Add the following DWORD value:

DisableWindowTransitionsOnAddinTaskPanes

... and set its value to 1. All other animations, even native task pane (such as Format Chart Area) animations, will remain unchanged. More info here.

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