Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / Windows Forms

MS Office-like TaskPane Control

Rate me:
Please Sign up or sign in to vote.
4.85/5 (25 votes)
24 Apr 2007CPOL10 min read 128.8K   8.4K   262  
A .NET TaskPane control, with full design-time support.
Imports System.ComponentModel

Namespace Design
    Public Class MdiTabProperties

        Private _backColor As Color
        Private _foreColor As Color
        Private _font As Font
        Friend Event PropertyChanged()

        <Category("Tab Appearance"), _
        Description("The background color of the tab.")> _
        Public Property BackColor() As Color
            Get
                Return _backColor
            End Get
            Set(ByVal value As Color)
                If _backColor <> value Then
                    _backColor = value
                    RaiseEvent PropertyChanged()
                End If
            End Set
        End Property

        <Category("Tab Appearance"), _
        Description("The text color of the tab.")> _
        Public Property ForeColor() As Color
            Get
                Return _foreColor
            End Get
            Set(ByVal value As Color)
                If _foreColor <> value Then
                    _foreColor = value
                    RaiseEvent PropertyChanged()
                End If
            End Set
        End Property

        <Category("Tab Appearance"), _
        Description("The font used to display the text of the tab.")> _
        Public Property Font() As Font
            Get
                Return _font
            End Get
            Set(ByVal value As Font)
                If Not _font Is value Then
                    _font = value
                    RaiseEvent PropertyChanged()
                End If
            End Set
        End Property

        Protected Sub InvokePropertyChanged()
            RaiseEvent PropertyChanged()
        End Sub
    End Class
End Namespace

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Microsoft
United States United States
I did some stuff.. I live in Seattle.. now I work for Live Search at Microsoft Smile | :)

Comments and Discussions