我使用下面给出的代码在 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
让我知道是否有任何其他方法可以实现这一点。谢谢。