开发者

Textbox Currency Format Question

Hey there! can I ask you how to make a CURRENCY FORMAT n textbox? Like for instance is Php###.##... Thanks 开发者_如何学Cloads!


Please check out these links.

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

Regards,

Syed Mustehsan Ikram


Read up on the Format$() function. Example:

Text1.Text = Format$(value, "$#,##0.00")


You could try something like myInt.ToString("C")

So it would be

total.text = myInt.ToString("C")

Where my myInt is the number you manipulate. Or you can do:

total.text = myInt.ToString('$###,###.00')

You also may want to look at the masked edit control http://msdn.microsoft.com/en-us/library/Aa239801

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜