all groups > dotnet windows forms databinding > july 2007 >
You're in the

dotnet windows forms databinding

group:

Limit textbox input



Limit textbox input KenL
7/18/2007 5:26:05 PM
dotnet windows forms databinding: I have a WinForm application that has Textbox controls bound to a model with
SQL server columns of data type, money. I only want to allow values like
45.33 to be entered, and not 45.336.

What is the best way to limit input to two decimal points of precision?

Thanks,
Ken
Re: Limit textbox input Barry
7/20/2007 2:38:23 PM
Ken,
Check out the MaskedTextBox control. It is very useful for this sort
of thing.

Barry

[quoted text, click to view]

AddThis Social Bookmark Button