Custom Control via wrapper

R

Ron

Hi,

I have a Janus GridEX third party control. I need to add some custom
properties of my own to it. I tried building a User Control and dragged a
GridEX onto the designer surface, but the GridEx has many custom properties
and designers and obviously my control only show the base control
properties. What is the best way for me to add properties to a Thrid Party
control and still have access to their designer?

Thanks!
Ron
 
G

Gaurav Vaish \(a.k.a. MasterGaurav\)

Ron said:
Hi,

I have a Janus GridEX third party control. I need to add some custom
properties of my own to it. I tried building a User Control and dragged a
GridEX onto the designer surface, but the GridEx has many custom
properties and designers and obviously my control only show the base
control properties. What is the best way for me to add properties to a
Thrid Party control and still have access to their designer?


Look into System.Component.IExtenderProvider

HTH
 
M

Marc Gravell

In many cases, simply inherit from it...

public class SomeFunkyNewControl : SomeBoringOldControl
{
public string YeeHah {get;set;}
}

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top