Link to home
Start Free TrialLog in
Avatar of Azmodan
Azmodan

asked on

Formating in a text box

I have this problem. I write a financial software for an italian firm. In Italy thay have big numbers and they are used to put points to delimitate the number. Like: 1.000.000 is one million. Now..I have to write a routine that automatically formats the number to that format. I implemented a format routine that formats after I leave the text-box (in LostFocus event), but the client wants the formating to appera as he types the number. That is, when he typed the fourth digit a point to appear automatically.  
I tried to do this but I was unable to. Is it posible? And how?
Avatar of Vbmaster
Vbmaster

Have you tried the masked edit box? It's a M$ product so it ought to be installed with VB. Check the Components window.
Avatar of Azmodan

ASKER

yeah...i seem to have overlooked that.
Thanx
MaskEdit.Mask = "#.###.###.###"
Wonderful little thing...saves pages of if's and other jumbled code.
ASKER CERTIFIED SOLUTION
Avatar of SiM99
SiM99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
a 'C', ouch