|
-
May 15th, 2008, 10:09 AM
#1
Thread Starter
Member
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
-
May 15th, 2008, 10:55 AM
#2
Hyperactive Member
Re: VS 2005 CheckBox Help
-
May 15th, 2008, 11:05 AM
#3
Thread Starter
Member
Re: VS 2005 CheckBox Help
I figured it out!!Thank you
-
May 16th, 2008, 02:22 AM
#4
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|