Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7022325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:34:01+00:00 2026-05-27T23:34:01+00:00

When you have a TableLayoutPanel on your Form and you drag a Label into

  • 0

When you have a TableLayoutPanel on your Form and you drag a Label into a cell, a few properties are available on the Label control. I think the same construction is used when you drag a Tooltip control on the form.

I’d like to know which design pattern is used to achieve this. Is this the decorator pattern?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:34:02+00:00Added an answer on May 27, 2026 at 11:34 pm

    What you are seeing are called Extender Providers.

    For example, when a ToolTip component is added to a form, it provides
    a property called ToolTip to each control on that form. The ToolTip
    property then appears in any attached PropertyGrid control.
    http://msdn.microsoft.com/en-us/library/ms171836.aspx

    I can’t think of a well-known pattern that describes how they work, exactly, but the mechanism is simple.

    You must implement IExtenderProvider. The WinForms Designer will call CanExtend for each other control on the surface, and your extender can specify if it provides additional attributes for each control.

    public interface IExtenderProvider {
        bool CanExtend(object extendee);
    }
    

    The actual attributes that other controls will be extended are declared using the ProvidePropertyAttribute and a method to provide the value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TableLayoutPanel that contains rows of labels. This control lives on form
I have a TableLayoutPanel and every time I put a label into one of
I have a TableLayoutPanel with 3 columns and 1 row: (Remove button, User Control,
happy holidays! i have a tablelayoutpanel (10x10). within each cell i have a picturebox
I have a TableLayoutPanel where each cell contains a single panel. I would like
I have a TableLayoutPanel control that is initially empty - 0 rows and 0
I have a user control that contains a 2-column TableLayoutPanel and accepts commands to
Have you guys had any experiences (positive or negative) by placing your source code/solution
I have a TableLayoutPanel which holds a dynamic number of controls inside a SplitterPanel.
I have a tablelayoutpanel. 2x2 - 2 columns 2 rows. For example, I added

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.