Question: Design an event handler that will execute when the calcAvailableCreditButton component is clicked. The event handler should perform the following: Declare the following Real variables:
Design an event handler that will execute when the calcAvailableCreditButton component is clicked. The event handler should perform the following:
Declare the following Real variables: maxCredit, usedCredit, and availableCredit.
- Get a value from a text box named maxCreditTextBox and assign it to the maxCredit variable.
- Get a value from a text box named usedCreditTextBox and assign it to the usedCredit variable.
- Subtract the value in usedCredit from maxCredit and assign the result to availableCredit.
- Store the value in the availableCredit variable in a label component named availableCreditLabel.
Step by Step Solution
3.39 Rating (161 Votes )
There are 3 Steps involved in it
private void calcAvailableCreditButtonClickobject sender EventArgs e Declare the Real var... View full answer
Get step-by-step solutions from verified subject matter experts
