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!
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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.