![]() ![]() SngCost = CSng(InputBox("Enter the cost of shirt " & intIndex)) The program will calculate a 25% discount for each of the 4 values and then display the discounted shirt prices in list box lstResult. Which of the following code segments correctly does the following? Employs a For loop with an InputBox to prompt the user four times for the cost of a T-shirt. What is the purpose of the ListBox.Add method The method will always put the item at the end of the list. ![]() NET will automatically add a scroll bar to the list box when it contains more items than can be displayed. InitialDelay This function returns the periodic payment amount for a loan Pmt How would you get scroll bars on your list box? Visual Basic. These two properties can be used in code to automatically select the text in a text box ) SelectionStart, SelectionLength This property determines the amount of time, in milliseconds, that elapses between the user pointing the mouse at a control and the tool tip appearing. If clbMovieNames.GetItemChecked(intIndex) ThenĮnd If All of the following are styles of Combo Boxes, except: List Combo Box A control's _ event is triggered just before the focus shifts to another control whose CausesValidation property is set to true Validated 23. Dim intIndex As Integerįor intIndex = 0 To - 1 ![]() LblSum.Text = intTotal.ToString 25 What is the code that will get the number of items checked in a checked list box named clbMovieNames? The total should be stored in intCheckedMovies. What is displayed in lblSum after the following code segment is executed? Next You need to specify a negative step size in order to execute the loop. Loop Until sngPayAmount > 150 The first loop will not be executed. What is the purpose of the Step clause?įor intX = 1 to 100 Step 5 to increment the loop control variable intX by 5 What is the difference in the execution of the Do Until Loop (first example) and the Do Loop Until (second example)? Items.Clear A For Next loop begins with the following statement. To get the number of items stored in a ListBox, you would use the unt The first item in a list box has an index of 0 Setting this property to True will put the items in the list into alphabetical order ) Organized This method will erase all the items in the list box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |