Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

YouDoIt1. Add a text box, a label, and a button to the form. The button\'s Click

ID: 3845904 • Letter: Y

Question

YouDoIt1. Add a text box, a label, and a button to the form. The button's Click event procedure should assign the text box value to a Double cariable and thne pass a copy of the varaible's calie to an indenpendent Sub procedure camed ShowDouble. The ShowDouble procedure should multiple the varaible's value by 2 and then display the result in the label control. Code the button's Click event procedure and the ShowDouble procedure.

Am coding this in "Visual Studio 2015" >> "Visual Basic" >> "Windows Forms".

Please and Thank you!

YOU DO IT 1! Create an application named YouDolt 1 and save it in the VB2015Chap07 folder. Add a text box, a label, and a button to the form. The button's Click event procedure should assign the text box value to a Double variable and then pass a copy of the variable's value to an independent Sub procedure named ShowDouble. The ShowDouble procedure should multiply the variable's value by 2 and then display the result in the label control Code the button's Click event procedure and the ShowDouble procedure. Save the solution, and then start and test the application. Close the solution.

Explanation / Answer

sub button_click

Dim rand1 As Double

rand1=textbox1.value

call showdouble(rand1)

end sub

sub showdouble(double r)

dim v as double

v=r*2

label.value=v

end sub

sub Exit_click

unload me

sub

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote