Forms Homework

  • Thread starter Thread starter Xabiso
  • Start date Start date
X

Xabiso

Guest


) This question is based on the GUI in the figure below umbers txt Nuri Enter First Number: txtNum2 Enter Second Number: Press R to reset IbiDisplay .This form receives input from a user to calculate a sum of the values entered in the textboxes, txtNumber and txtNum2, and displays the sum in the label, jolDisplay When the form loads, only the txtNum 1 is visible, txtNum2 and lb Display are hidden from the user. When the user enters a value in txtNum 1, txtNum2 is made visible in the form, and when the user enters a number in txtNum2, the label, IblDisplay is made visible and the sum of the values in the 2 textboxes is displayed. When the user presses the keyboard letter R the screen should be reset to its default state, which only displays the textbox txtNum.

1.1.1 Write the code for the textbox, txtNum 1, which uses the textChanged event for making the textbox, txtNum2) when entering the first number [5] 1.2 Write the code for the textbox, txtNum2, which uses the keypress event. This textbox calculates the sum of the 2 numbers in the textboxes, and displays it in the label, Ib Display Also show the hidden textbox When the number is entered in txtNum2 .

1.3 In the form_load method, write the code for the R key which sets the form to its initial state when the R key is pressed. 151

Continue reading...
 
Back
Top