Is there a MaskEditBox replacement in .NET 
Author Message
 Is there a MaskEditBox replacement in .NET

I need a series of textboxes which will accept currency amounts. Nothing
strange here, just want the text to be formatted in such a way that the text
stored in the edit control is a decimal value or at least something I can
easily extract a decimal value from to be stored in an SQL table, but all
the while displaying it to a user as a string like $x,xxx.xx. Ideally, it
should disallow any alpha characters and only allow numerics.

Anybody know how to do this?

--
TW
(is it safe to come out?)



Sat, 20 Nov 2004 17:21:06 GMT  
 Is there a MaskEditBox replacement in .NET
Is it sounding like I am going to have to inherit from the
Windows.Forms.Textbox and implement the stuff I need? If so, great
opportunity for Custom Control developers in this group!


Quote:
> I need a series of textboxes which will accept currency amounts. Nothing
> strange here, just want the text to be formatted in such a way that the
text
> stored in the edit control is a decimal value or at least something I can
> easily extract a decimal value from to be stored in an SQL table, but all
> the while displaying it to a user as a string like $x,xxx.xx. Ideally, it
> should disallow any alpha characters and only allow numerics.

> Anybody know how to do this?

> --
> TW
> (is it safe to come out?)



Sat, 20 Nov 2004 17:33:59 GMT  
 Is there a MaskEditBox replacement in .NET

Quote:
> Is it sounding like I am going to have to inherit from the
> Windows.Forms.Textbox and implement the stuff I need? If so, great
> opportunity for Custom Control developers in this group!

Or a great challenge for yourself. Good for your experience and learn path.
Especially since knowing how to create your own UserControls greatly extends
your possibilities.


Sat, 20 Nov 2004 17:48:30 GMT  
 Is there a MaskEditBox replacement in .NET
In the .NET Framework SDK, there is a sample program Simple Binding under
the section Windows Forms / Databinding in Windows Forms.  In it you will
find code in the SimpleBinding.vb module that formats a textbox for a date
by attaching handlers to the Format and Parse Events.  I assume this
approach is applicable to your situation.

HTH



Sat, 20 Nov 2004 21:11:24 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Really need help a bug with VS.Net and MaskEditBox

2. Where is MaskEditBox Control in VB.Net ?

3. I am learning VB.NET and am wondering....

4. I am looking for DBLookupCombobox replacement

5. i am using vb.net and crystal reports for visual studio.net

6. Applet/ActiveX Control Replacement in VB .NET

7. ImageCombo Replacement in VB.net??

8. .NET Replacement for : GetWindowLong,FindWindow,SendMessage,EnumChildWindows

9. IsDate() .Net replacement?

10. API Replacement for "Net Use"

11. I am writing a book about VB .NET, and I need your help you

12. I am still confused with using ADO.Net

 

 
Powered by phpBB® Forum Software