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?
I tried to do this but I was unable to. Is it posible? And how?
Have you tried the masked edit box? It's a M$ product so it ought to be installed with VB. Check the Components window.
ASKER
yeah...i seem to have overlooked that.
Thanx
Thanx
MaskEdit.Mask = "#.###.###.###"
Wonderful little thing...saves pages of if's and other jumbled code.
Wonderful little thing...saves pages of if's and other jumbled code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
a 'C', ouch
upgraded to "A" as requested in https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20156118