Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying commas and period in a textbox(currency) while typing

Status
Not open for further replies.

pingpang

Programmer
Feb 1, 2003
22
0
0
PH
Good day to you!


I can't figure how to format a 1000 into 1,000.00/1,000 in a textbox. If you do, please help me. thanks!
 
i beleive there is a format function for this.
 
Start with something like this in the change event.

Text1.Text = Format(Text1.Text, "#,###.00")
Text1.SelStart = Len(Text1.Text)

 
thanks for the response....YOur (DrJavaJoe) code is just what I need..:)

Maybe I have other follow up questions similar to what i ask, I just post it in this thread. Hope you guys can check it.

thanks!

 
hi ,

why not try masked edit control .. ???
have u tried it ??

[cheers]
Niraj [noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top