This is going the last one for these 2 weeks.I hope I see you soon
The Editor Format tab of the Options dialog box, which appears when you select Tools | Options and click the Editor Format tab. The dialog box illustrates a List Box control. You've seen list boxes throughout your work with Windows; list boxes appear on many forms and dialog boxes. The List Box control gives the user a choice of several values. The user selects an option instead of typing a value into a text box. The list box ensures that the user always chooses one of the available options
The list box displays scrollbars if the list box isn't tall enough or wide enough to display all its data.
As you place the list box on the form, think about the data the list box will hold and try to size the list box so that it's large enough to hold the data. Of course, you don't always now a list box's data in advance because the data might come from a disk file or from the user at the keyboard. Your form's size and surrounding controls might limit the size of your list box, so the scrollbars often appear.
Things to know about List Boxes:
BackColor Specifies the list box's background color. Columns Determines the number of columns. If 0, the list box scrolls vertically in a single column. If 1 or more, the list box items appear in the number of columns specified (one or more columns), and a horizontal scrollbar appears so that you can see all the items in the list. ForeColor Specifies the list box's text color. Height Indicates the height of the list box in twips. IntegralHeight Determines whether the list box can display partial items, such as the upper half of an item that falls toward the bottom of the list box.
List Holds, in a drop-down property list box, values that you can enter into the list box at design time. You can enter only one at a time, and most programmers usually prefer to initialize the list box at runtime. MultiSelect The state of the list box's selection rules. If 0-None (the default), the user can select only one item by clicking with the mouse or by pressing the Spacebar over an item. If 1-Simple, the user can select more than one item by clicking with the mouse or by pressing the Spacebar over items in the list. If 2-Extended, the user can select multiple items using Shift+click and Shift+arrow to extend the selection from a previously selected item to the current one. Ctrl+click either selects or deselects an item from the list. Sorted Determines whether the list box values are automatically sorted. If False (the default value), the values appear in the same order in which the program added the items to the list. Style Determines whether the list box appears in its usual list format(horizontal) or, vertical, with check boxes next to the selected items.
Common Methods: AddItem Adds a single item to the list box. ClearRemoves all items from the list box. List A string array that holds items from within the list box. ListCount The total number of list box items.
RemoveItem Removes a single item from the list box.
Posts 1–10 of 10 · Page 1 of 1
Post a Reply
Tags for this Thread
None
Your son will miss you !
@Takari Nice tutorials, They should be sticky'd If people are liking it, and enjoying it.