Task Pane Demo Sample

This sample demonstrates how to create a custom task pane for Microsoft Office Word. The task pane contains a text box and a button. When the user types in the text box and clicks the button, the string in the text box is added to the beginning of the active document.

 
 
 
 
 
5 Star
(1)
5,824 times
Add to favorites
5/13/2011
E-mail Twitter del.icio.us Digg Facebook
' Copyright © Microsoft Corporation.  All Rights Reserved.
' This code released under the terms of the 
' Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

Public Class ThisAddIn
    Private _taskPane As Microsoft.Office.Tools.CustomTaskPane

    Private Sub ThisAddIn_Startup( _
    ByVal sender As Object, _
    ByVal e As System.EventArgs) _
    Handles Me.Startup

        _taskPane = Me.CustomTaskPanes.Add( _
           New SimpleControl(), "Contoso")
        _taskPane.Visible = True

    End Sub


    Private Sub ThisAddIn_Shutdown() Handles Me.Shutdown

    End Sub

End Class