Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

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

$
0
0

I want to create a custom DataBinding property for a custom control ( which isnot 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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>