Results 1 to 4 of 4

Thread: VS 2005 CheckBox Help

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2008
    Posts
    40

    VS 2005 CheckBox Help

    Hi guys,
    I'm fairly new to VB.NET. I'm using VS 2005 to build an application.
    Currently I have the current code to display the value of one or more Checkboxes in the proper textBox.
    Code:
    dim extraDecimal as Decimal
    
    Const gapDecimal As Decimal = 85D
    Const sandDecimal As Decimal = 95D
    Const lobDecimal As Decimal = 99.55D
    
    
    
    If Me.gapCheckBox.Checked = True Then
    
                    extraDecimal += gapDecimal  'selected Gap fee
    
                End If
    
                If Me.sandCheckBox.Checked = True Then
    
                    extraDecimal += sandDecimal 'selected Sand Fee
    
                End If
    
                If Me.lobCheckBox.Checked = True Then
    
                    extraDecimal += lobDecimal  'selected lob fee
    
                End If
    
               'Display value in textbox
    
                Me.extraTextBox.Text = extraDecimal.ToString("N2")
    Thank you for your help

  2. #2
    Hyperactive Member mrmojorisin's Avatar
    Join Date
    Oct 2007
    Location
    London Town Vocation: Garden Cricket Genuis
    Posts
    439

    Re: VS 2005 CheckBox Help

    Whats the problem??

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2008
    Posts
    40

    Re: VS 2005 CheckBox Help

    I figured it out!!Thank you

  4. #4
    Hyperactive Member mrmojorisin's Avatar
    Join Date
    Oct 2007
    Location
    London Town Vocation: Garden Cricket Genuis
    Posts
    439

    Re: VS 2005 CheckBox Help

    Cool, good luck, mark thread as resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width