Adding values from checkedboxes on groupbox VB 2010

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Erivan
    New Member
    • Feb 2011
    • 1

    Adding values from checkedboxes on groupbox VB 2010

    I'm new at this I'm using visual basic 2010
    how can I add values of checkboxes in a groupbox? I assigned a value to every item on the group box example:

    1 Dim hbo As Integer = 16.0
    2 Dim starz As Integer = 13.0
    3 Dim showtime As Integer = 13.0
    4 Dim cinemax As Integer = 13.0
    5 Dim any2 As Decimal = 24.0
    6 Dim any3 As Decimal = 33.0
    7 Dim all4 As Decimal = 42.0

    if I check 3, 5, 7 how do I make it sum 3,5,7 to give me a total.
    How can I assign that total to the groupbox and then add all the groupboxes
    Attached Files
Working...