Databound object

  • Thread starter Thread starter Anthony Sox
  • Start date Start date
A

Anthony Sox

Can anyone help me with this problem.

I have an object with properties bound to controls on a form. e.g
PhoneNumber is bound to txtPhoneNumber. When a user enters a phone number
the validation routine of the property reformats the number from, example
9729001234 to (972)-900-1234 for storing in the database. I want the changes
to reflect on the control (txtPhoneNumber) automatically.

Thanks in advance
 
Hi,

http://msdn.microsoft.com/library/d...systemwindowsformsbindingclassformattopic.asp

Ken
-----------------
Can anyone help me with this problem.

I have an object with properties bound to controls on a form. e.g
PhoneNumber is bound to txtPhoneNumber. When a user enters a phone number
the validation routine of the property reformats the number from, example
9729001234 to (972)-900-1234 for storing in the database. I want the changes
to reflect on the control (txtPhoneNumber) automatically.

Thanks in advance
 
Back
Top