K
Ken Allen
Is there a way in a .Net Windows Form TextBox to define an edit mask that
controls the type of characters and values that the user may enter? Years
ago I worked with some MFC code that did this to, for example, set a mask
for an edition control that forced the display to look like a North American
phone number ("(999) 999-9999"), but I can find no way to do this in .Net --
I am probably just missing something.
I am expermimenting, and at this time I want to be able to display an edit
control for either a dollar value, a percentage or a factor ($9,999,999.99
or 999.99% or 99.9999). I want the display to reflect the intent and the
user to be restricted to entering only numeric values. I can find no mention
of the ability to do this in MSDN.
There are tons of books out there on various aspects of .Net, such as
ADO.Net and Remoting, and a ton of general books as well, but I am having
difficulty locating a good book that focuses on the Windows (and web) Forms
programming topics and how to achieve certain relatively complex tasks (such
as the edit mask approach I mention here).
Ken Allen
controls the type of characters and values that the user may enter? Years
ago I worked with some MFC code that did this to, for example, set a mask
for an edition control that forced the display to look like a North American
phone number ("(999) 999-9999"), but I can find no way to do this in .Net --
I am probably just missing something.
I am expermimenting, and at this time I want to be able to display an edit
control for either a dollar value, a percentage or a factor ($9,999,999.99
or 999.99% or 99.9999). I want the display to reflect the intent and the
user to be restricted to entering only numeric values. I can find no mention
of the ability to do this in MSDN.
There are tons of books out there on various aspects of .Net, such as
ADO.Net and Remoting, and a ton of general books as well, but I am having
difficulty locating a good book that focuses on the Windows (and web) Forms
programming topics and how to achieve certain relatively complex tasks (such
as the edit mask approach I mention here).
Ken Allen