![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are extender provider components in C#?
To provide properties to other components, the extender provider is used. Let’s consider an example of a TooTtip component.
You add the component to a form. This sets a ToolTip property to every control. The same property is not under the attacked PropertyGrid control.
myTooltip1.SetToolTip(btn1, "This is ToolTip!");
Let us see how to implement extender provider component −
Firstly, define a component −
public class MyExtender : IExtenderProvider {...}
IExtenderProvider definition −
public interface IExtenderProvider { bool newExtend(object extendeNew); }
Now you need to implement the newExtend method. This is done to return true for every related component or control.
Advertisements