I'm having a problem with the MaskedTextBox when I'm using bound controls. I have a model object (a stock part say) that has a price attibute. The type of this attribute is decimal. The mask I am using is ###.##.
Now, if I use the MaskedTextBox in an unbound manor and type 2.35 and tab out of the control, the control disyplays 2.35, however if I use my model object as a datasource to a binding source and then have the controls created by dragging the datasource onto a form and repeat the process, when I tab out of the control it displays 234.__ which is not good.
I've created a screencast that you can view
here, that shows the problem. If any one knows how to fix this then put me out of my misery would you?
Update: I've discovered I don't need a MaskedTextBox. If I bind an ordinary TextBox to a decimal attribute on my model object, then it automagically ensures that the values input can be converted to a decimal! :)