将图像添加到Outlook中的自定义任务窗格标题 - VB.Net

时间:2016-07-02 00:42:14

标签: vb.net outlook customization customtaskpane

我使用下面给出的代码在VB.Net for Outlook中创建了一个自定义任务窗格,我想在用户控件的标题(图像和按钮)中添加更多内容,而不仅仅是标题。有没有办法实现这个目标?

myUserControl1 = New OutlookTaskPane
        myUserControl1.TabStop = True
        Dim width As Integer = myUserControl1.Width
        myCustomTaskPane = Me.CustomTaskPanes.Add(myUserControl1, "My Custom Task Pane")
        myCustomTaskPane.Width = width
        myCustomTaskPane.Visible = True
        myCustomTaskPane.DockPositionRestrict = Microsoft.Office.Core.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoChange

请告诉我是否有其他方法可以实现这一目标。 感谢。

1 个答案:

答案 0 :(得分:3)

不幸的是,TaskPane标头不可自定义。只有Add-in Express使用高级表单区域的实现支持类似的自定义(尽管只能更改标题图标和标题颜色,并且您无法向其添加Windows窗体控件)。另一种选择是实现您自己的任务窗格类型,以便您可以完全控制UI;见https://code.msdn.microsoft.com/OlAdjacentWindows/

相关问题