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.
Thank you for your helpCode: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")
