Neo*_*ile 5 vb.net customization outlook 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
Run Code Online (Sandbox Code Playgroud)
请告诉我是否还有其他方法可以实现这一目标.谢谢.
不幸的是,任务窗格标题不可自定义。只有 Add-in Express 支持使用高级表单区域实现进行类似的自定义(尽管只能更改标题图标和标题颜色,并且无法向其中添加 Windows 窗体控件)。另一种选择是实现您自己类型的任务窗格,以便您可以完全控制 UI;请参阅https://code.msdn.microsoft.com/OlAdjacentWindows/。