All those ToStrings are really not necessary.
You have three doubles which are already numeric and do not need any format.
You can calculate with these numeric types and only in the end do you need to format it for output.
What's also wrong, as far as I can see, if txtTotalReceipts.Text or txtTotalPayments is not convertible to a numeric type your code is going to throw an exception.
You should check the
TryParse Method[
^].
Public Sub DisplayTotalBalance()
Dim addTotalReceipts As Double
Dim minusTotalPayments As Double
Dim getTotalBalance As Double
If Double.TryParse(txtTotalReceipts.Text, addTotalReceipts) AndAlso Double.TryParse(txtTotalPayments.Text, minusTotalPayments) Then
getTotalBalance = addTotalReceipts - minusTotalPayments
txtBalance.Text = getTotalBalance.ToString("###,###.00")
Else
txtBalance.Text = String.Empty
End If
End Sub
Hope it helps :)