Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please i want to write a code that will include checkboxes subtracting values from another textbox if checked. example i need checkbox1.checked to subtract 12.5% from textbox2.text, and display results in textbox3 and if results is > 350 then subtract 350 from textboxt2, but if results is < 350 then subtract results from textboxt2.
please i hope you understand me i have a project to present and i am stack her.
Posted
Comments
Suvendu Shekhar Giri 26-Oct-15 7:21am    
That sounds an easy task. Anything you have tried so far?
Masta Pee 26-Oct-15 7:46am    
yes i tried
If Vehicle_Fuel_DriverCheckBox.Checked Then
Val(Total_Cash_EmolumentsTextBox.Text) - Val(12.5%) = VHFTotal.Text
ElseIf VHFTotal.Text > 350 Then
End If
this is what i have tried... i am a bigginer at vb so i am not really sure if it works...
Masta Pee 26-Oct-15 7:47am    
i got stack there
VR Karthikeyan 26-Oct-15 7:49am    
change this Val(Total_Cash_EmolumentsTextBox.Text) - Val(12.5%) = VHFTotal.Text
into VHFTotal.Text = Val(Total_Cash_EmolumentsTextBox.Text) - Val(12.5%). Left hand side of the assignment operator(=) will be a container to hold the information which you are going to assign, and right hand side is the expression area which produces the data to be assigned.
Masta Pee 26-Oct-15 7:55am    
the % sign is not accepted... it says character not valid

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900