Formatting Numbers in Data Bound Text Box on .net Windows Form
The other day I was trying to set some number formatting on a data bound text box on a Windows Form (.net) application.
In this case I wanted to display the number as currency, which is a common occurence.
Seems that this is one of those things that I have forgotten before.
I knew that there is a simple property you can set but I just could not find it.
That's because it's kind of hidden. It's under DataBindings in the properties list of the control.
You have to click the ellipis next to Advanced.
Once in there, you will set Format Type and you can set it to one of the common ones (Currency, Date Time, or Numeric).