Is it possible to bind a form's controls to a class? So if they change the form it updates the class data or vice versa?
Printable View
Is it possible to bind a form's controls to a class? So if they change the form it updates the class data or vice versa?
I'm not sure, but I think you can make a Form a property of a class, and if you use the form for that instance, any changes in that form could be used whichever way you want within that instance.
That is an interesting idea. I will try that at a later date.Quote:
Originally Posted by benmartin101
VB Code:
txtAddr1.DataBindings.Add("Text", myObject, "Client.ClientAddress.Addr1")
I think that should add the binding after the fact. But I keep getting an error at run time.