MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
the ____ attribute to specify the number of visible values in listbox
A
option
B
Selected
C
Maxvisible
D
size
Explanation: 

Detailed explanation-1: -The size attribute specifies the number of visible options in a drop-down list.

Detailed explanation-2: -The maximum height of a ListBox item is 255 pixels.

Detailed explanation-3: -The width of the widget in characters. The default is 20. If you want to allow the user to scroll the listbox horizontally, you can link your listbox widget to a horizontal scrollbar. If you want to allow the user to scroll the listbox vertically, you can link your listbox widget to a vertical scrollbar.

Detailed explanation-4: -To retrieve a collection containing the indexes of all selected items in a multiple-selection ListBox, use the SelectedIndices property. If you want to obtain the item that is currently selected in the ListBox, use the SelectedItem property.

Detailed explanation-5: -The purpose of a listbox widget is to display a set of lines of text. Generally they are intended to allow the user to select one or more items from a list. All the lines of text use the same font. If you need something more like a text editor, see Section 24, “The Text widget”.

There is 1 question to complete.