UI Manager Sample for .NET 4.0

This sample demonstrates how to customize the user interface (UI) of Microsoft Office Outlook 2007 by implementing extensibility interfaces in an add-in. This sample uses extensibility interfaces to create a Ribbon customization, a custom task pane, and a custom form region.

4 Star
6,224 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

' 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.)

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Data
Imports System.Text
Imports System.Windows.Forms
Imports System.Runtime.InteropServices
Imports UiManagerOutlookAddIn.AddinUtilities

<ComVisible(True)> _
<ProgId("UiManager.SimpleControl")> _
<Guid("E2F1F0E8-254A-4ddc-A500-273D6EFB172B")> _
Partial Public Class SimpleControl
    Inherits UserControl

    Public Sub New()
    End Sub

    Private _mailServiceGroup As String = "mailServiceGroup"

    Private Sub closeCoffeeList_Click(ByVal sender As Object, ByVal e As EventArgs) _
     Handles _closeCoffeeList.Click
        ' Clear and hide the listbox.
        Me._coffeeGroup.Visible = False

        ' Make the add-in service ribbon buttons invisible again.
        Dim uiContainer As UserInterfaceContainer
        uiContainer = _
    End Sub

End Class