Click here to Skip to main content
15,915,059 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
i have a texbbox in a user form, but my problem is how can i input a money value in my texbox????
Posted
Comments
Sergey Alexandrovich Kryukov 3-Apr-12 2:13am    
What's the problem, a keyboard broken? :-)
--SA
Maciej Los 3-Apr-12 14:51pm    
Good question! ;)
Sergey Alexandrovich Kryukov 3-Apr-12 17:40pm    
:-)

If you are trying to type into it, then just type the amount. If you are trying to programmatically put something in the textbox, then use:

Textbox1.text = ""


Textbox1 being the name of the textbox. put what you want to appear in the textbox inside the ""

Hope this helps. :)
 
Share this answer
 
I'm not sure exactly what you are asking, but it sounds like perhaps you are simply asking for information on how to format a number into a string. If so, here are two links that may help you:

Standard Numeric Format Strings[^]

Custom Numeric Format Strings[^]

If you scroll down on each of them, you'll see some sample code for how each are used. I've never had to format for pesos, but these links do discuss how changing the culture will change the way the number is formatted. So hopefully that will help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900