How to create a custom DataBinding property for any custom control like TextBox or Label ?

  • Thread starter Thread starter Siddharth.Shinde
  • Start date Start date
S

Siddharth.Shinde

Guest
I want to create a custom DataBinding property for a custom control ( which is not an extension of windows forms control).

I have used this with TextBox or Label where I can attach an object with it using data binding property.


for e.g.

label1.DataBindings.Add(new Binding("Text", MyStudent, "Name"));


I want to have similar property or function for my user control. How can I do it?

Please help. Thanks in advance.


Siddharth.Shinde

Continue reading...
 
Back
Top