Terkadang kita menginginkan tampilan rupiah dalam VB.Net
Berikut Contoh Programnya:
Dim angka1 As Integer = 5000
Dim angka2 As Integer = 200
MsgBox(String.Format(“{0:C2}”, angka1 + angka2))
Atau
Dim angka1 As Integer = 5000
Dim angka2 As Integer = 200
Dim sum As Integer = angka1 + angka2
MsgBox(sum.ToString(“C2”))