Showing posts with label Format. Show all posts
Showing posts with label Format. Show all posts

Monday, February 16, 2015

VB.net Formatting Data for Display

ตัวอย่าง
displayLabel.Text = numberInteger.ToString()
' Display as currency.
extendedPriceLabel.Text = (quantityInteger * priceDecimal).ToString("C")
' Display as numeric.
discountLabel.Text = discountDecimal.ToString("N")



Wednesday, January 25, 2012

VB.net Format TextBox as Number

Dim n As Integer = 10000
TextBox1.Text = n.ToString("##,##,###.00")