Hello there ..
To bind an object to any bindable control you can use the easy way they both (the bindable control and source object) should have the same object type for the bindable property !
Ex:
I have a class where it has a property named [Picture] , and have a picture box that I would like to bind it to !
so here is an example code to do this mission :
using System.Drawing;
namespace Test{
class a
{
public a() { }
private Image picture;
public Image Picture
{
get { return picture; }
set { picture = value; }
}
}
}
a aTest = new a();
this.pictureBox1.DataBindings.Add("Image", a, "Picture");
hope you get the point , if not type a reply and I will post back as soon as possible.
Cheers and good coding journey ! ;)