stefan1919

CheckBox

Sep 30th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  4.         Dim sum As Double = 0
  5.         If chkDental.Checked Then
  6.             sum += 39.15
  7.         End If
  8.         If chkDental.Checked Then
  9.             sum += 10.81
  10.         End If
  11.         If chkVision.Checked Then
  12.             sum += 2.25
  13.         End If
  14.         If chkMedical.Checked Then
  15.             sum += 55.52
  16.         End If
  17.         txtTotal.Text = sum.ToString("C")
  18.  
  19.     End Sub
  20. End Class
Advertisement
Add Comment
Please, Sign In to add comment