Write a program to enter the value of two variables (V
and W) using inputbox. Find and
print the minimum value for two variables in textbox. Design form
window and select all the
control objects are used.
1. To enter two variables as inputs we need to create two labels:
2. To take the user inputs, we need to create the text fields for V and W.
3. Then we need to create a button for sending the command to max-min check and a text box to display the result.
Click on the command button (input button). Code is given below:
Private Sub Command1_Click()
If Val (Text1.Text) < Val (Text2.Text)
Then
Text3.Text = Text1.Text
Else
Text3.Text = Text2.Text
End If
End Sub
Get Answers For Free
Most questions answered within 1 hours.