@stanav. good answer. i'm sure you know but:
this:
vb Code:
MessageBox.Show(String.Format("Total purchase: {0}{3}Total discount: {1}{3}Net Due: {2}", _ totalPurchased.ToString("C"), totalDiscount.ToString("C"), _ (totalPurchased - totalDiscount).ToString("C"), Environment.NewLine))
can be more efficiently written as this:
vb Code:
MessageBox.Show(String.Format("Total purchase: {0:C}{3}Total discount: {1:C}{3}Net Due: {2:C}", _ totalPurchased, totalDiscount, _ (totalPurchased - totalDiscount), Environment.NewLine))




Reply With Quote