kamarihemingway9109 kamarihemingway9109
  • 20-01-2020
  • Computers and Technology
contestada

Which of the following statements selects the "blue" item, which appears fourth in the lstColor control?a. lstColor.SlectIndex = 3b. lstColor.SlectIndex = 4d. lstColor.SlectItem = 3e. lstColor.SlectIitem = 4

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 21-01-2020

Answer:

a. lstColor.SlectIndex = 3

Explanation:

Listbox uses index to represent items.

The index starts its count from 0. Meaning that, the first item has an index of 0, the second has an index of 1 and so on.

From the question, the said color is the 4th in the list; going by the simple analysis stated above, it's index is 4-1 = 3.

The syntax for that is

listboxname.Selectedindex = index

i.e.

lstColor.SelectIndex = 3.

Answer Link

Otras preguntas

how can the boiling point of a liquid be raised without adding soluble impurity?
How does the modern era differ from the post-classical era?
what is difference between kilowatt and kilowatt hour?
Two glasses together contain 280 mLof water. The first glass contains 80 ml more than the second glass. How much water does the first glass contain?
What is the answer to 5x-7y=14
A fair coin is tossed 5 times. What is the probability of obtaining exactly 3 heads.
How do you solve the function y = 2.5^x for y=20
Solve: –3 + x = 7That is the whole problem so adding words to make this be seen
State whether the equation is a linear equation in one variable or not. –2x(–2 – x) = x + 1
what is difference between kilowatt and kilowatt hour?