Figure 6-7 shows an application’s form. The list box is named lstOutput. The buttons are named btnGo and btnExit. The application’s procedures are as follows: Private Sub btnGo_Click(...) Handles...


Figure 6-7 shows an application’s form.


The list box is named lstOutput. The buttons are named btnGo and btnExit.


The application’s procedures are as follows:


Private Sub btnGo_Click(...) Handles btnGo.Click


Dim intNumber As Integer


Dim strInput As String


strInput = InputBox("Enter a number")


intNumber = CInt(strInput)


If intNumber <>


Message1()


Message2()


Else


Message2()


Message1()


End If


End Sub


Private Sub btnExit_Click(...) Handles btnExit.Click


'Close the form.


Me.Close()


End Sub


Sub Message1()


lstOutput.Items.Add("Able was I")


End Sub


Sub Message2()


lstOutput.Items.Add("I saw Elba")


End Sub


Suppose you run this application and click the btnGo button. What will the application display in the list box if you enter 10 in the input box? What if you enter 5?



Nov 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here