Link to home
Start Free TrialLog in
Avatar of supercoqui
supercoquiFlag for United States of America

asked on

change textbox to currency on a bind ADO.NET

Ok i did binding of a database MS access file to my form. It displays the data in textboxes. Now i am trying to make the currency textbox display th data form the database fiel in currency. Any help?
Avatar of ZeonFlash
ZeonFlash

After you bind the textbox, try this:

TextBox1.Text = FormatCurrency(TextBox1.Text, 2)
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of supercoqui

ASKER

Thanks, I also found you can change it on the form properties on the solution explorer. Basically you have to select data bindings and go to advance. You can change the way the data is presented. cheers