我使用下面的代码在VB.Net中为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
请让我知道是否还有其他实现此目标的方式。谢谢。