Click here to Skip to main content
15,891,248 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.9K   8.4K   262  
A .NET TaskPane control, with full design-time support.
Imports System.Drawing.Drawing2D
Imports System.ComponentModel

Namespace Design
    Public Class ActiveMdiTabProperties
        Inherits InactiveMdiTabProperties

        Private _closeButtonBackColor As Color
        Private _closeButtonBorderColor As Color
        Private _closeButtonForeColor As Color
        Private _closeButtonHotForeColor As Color

        <Category("Close Button Appearance"), _
        Description("The background color of the tab's close button when moused over.")> _
        Public Property CloseButtonBackColor() As Color
            Get
                Return _closeButtonBackColor
            End Get
            Set(ByVal value As Color)
                If _closeButtonBackColor <> value Then
                    _closeButtonBackColor = value
                    InvokePropertyChanged()
                End If
            End Set
        End Property

        <Category("Close Button Appearance"), _
        Description("The border color of the tab's close button when moused over.")> _
        Public Property CloseButtonBorderColor() As Color
            Get
                Return _closeButtonBorderColor
            End Get
            Set(ByVal value As Color)
                If _closeButtonBorderColor <> value Then
                    _closeButtonBorderColor = value
                    InvokePropertyChanged()
                End If
            End Set
        End Property

        <Category("Close Button Appearance"), _
        Description("The glyph color of the tab's close button.")> _
        Public Property CloseButtonForeColor() As Color
            Get
                Return _closeButtonForeColor
            End Get
            Set(ByVal value As Color)
                If _closeButtonForeColor <> value Then
                    _closeButtonForeColor = value
                    InvokePropertyChanged()
                End If
            End Set
        End Property

        <Category("Close Button Appearance"), _
        Description("The glyph color of the tab's close button when moused over.")> _
        Public Property CloseButtonHotForeColor() As Color
            Get
                Return _closeButtonHotForeColor
            End Get
            Set(ByVal value As Color)
                If _closeButtonHotForeColor <> value Then
                    _closeButtonHotForeColor = value
                    InvokePropertyChanged()
                End If
            End Set
        End Property
    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