In the btnSub_Click event handler, add the Visual Basic instructions to do the following:

A. Define a procedure level constant named intTwo with an integer datatype and a value of 2.

B. Subtract 2 from the class level variable intClass by using the constant intTwo.

C. Display the value of the intClass variable in the lblClass label.

Please answer

Respuesta :

Answer:

A.

Inside the btn_click function define the procedure level constant as

Dim intTwo As Integer =2

B. Outside all the methods define the class level variable

Dim intClass As Integer =23

And inside the btn_click write

intClass = intClass - 2

C. Create a label and write below code:

lblClass.Text = intClass inside the btn_click.

Explanation:

Please check the answer section.