Databound object

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
 
K

Ken Tucker [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top