G
Guest
I need to create component that allows binding to it's properties. Maybe
there exists some interface or something.
Like:
===================================================
public class Cat : Component, ISomeBindInterface{
private String pCatName;
public String CatName{
get {return pName;}
set {pName = value;}
}
}
...
Cat Tom = new Cat();
TextBox txt = new TextBox();
txt.DataBindings.Add(new System.Windows.Forms.Binding("Text", Tom,
"CatName", true));
==================================================
It will be very good to see this component in design-time in VS (I know how
to do that). It needs the same functionality as all other components like
DataSet etc. - setting bindings through PropertyGrid.
Thanks a lot.
there exists some interface or something.
Like:
===================================================
public class Cat : Component, ISomeBindInterface{
private String pCatName;
public String CatName{
get {return pName;}
set {pName = value;}
}
}
...
Cat Tom = new Cat();
TextBox txt = new TextBox();
txt.DataBindings.Add(new System.Windows.Forms.Binding("Text", Tom,
"CatName", true));
==================================================
It will be very good to see this component in design-time in VS (I know how
to do that). It needs the same functionality as all other components like
DataSet etc. - setting bindings through PropertyGrid.
Thanks a lot.