• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unchecked event in VB.NET

Use the checkedchanged event and simply check the state of it.

You know about the drop down that lists all events for a control in the upper right, correct?
 
I apologize, shouldve given little more detail.

checkchange event
-checkbox.checked adds value to total amount, if same checkbox is unchecked afterwards, same value needs to be subtracted to keep the correct amount.
 
As PhatoseAlpha said, you can use the CheckedChanged event and you can switch between adding and subtracting the amount based on the state of the checkbox. You could also just could play it safe and recalculate the total. 🙂
 
omg.. thanks, im slow. I dont know why I didnt think to just add an else line to the if statement saying subtotal -= WARRANTY_PRICE_Decimal. I think I had the thought it would do both, add and subtract, if checkbox was checked
 
Back
Top