Can I bind controls on a form to an object?

PrimusGreg
12-12-2002, 08:14 AM
I'm creating an object that is essentially a form (a paper form, not a VB form) and it's properties are the various fields on the form. What I want to know is once I set all of the properties for my object, can I bind a text box to one of the properties of the object. Say for example, my object has a date property. Can I bind a textbox to that date property?

lebb
12-12-2002, 08:49 AM
Not in the same sense that you can bind a control to a datasource. However, in your textbox's Change or Validate event, you could have it modify the date property of your object. And if you need that to go both directions, your object could raise an event when the date property is changed, which then your form would respond to by changing the Text property of the textbox.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum