答案 0 :(得分:0)
请查看这些链接。
http://www.bigresource.com/VB-How-Format-A-Textbox-For-Currency-qotmHSGy5S.html#yb4rePPaZv http://forum.codecall.net/visual-basic-programming/16690-format-textbox-currency.html
此致
Syed Mustehsan Ikram
答案 1 :(得分:0)
阅读Format$()
功能。例如:
Text1.Text = Format$(value, "$#,##0.00")
答案 2 :(得分:-1)
你可以尝试类似的东西 myInt.ToString( “C”)
所以它会是
total.text = myInt.ToString("C")
我的myInt是你操纵的号码。或者你可以这样做:
total.text = myInt.ToString('$###,###.00')
您还可以查看屏蔽的编辑控件 http://msdn.microsoft.com/en-us/library/Aa239801