Load items faster in the TreeView and ListView controls
There is an easy, but under-utilized, technique for loading many nodes in a TreeView control (or ListItems in a ListView control) that is faster than the standard technique. Consider this
There is an easy, but under-utilized, technique for loading many nodes in a TreeView control (or ListItems in a ListView control) that is faster than the standard technique. Consider this
The ComboBox control contains an invisible Edit window, which is used for the edit area. In most cases you don’t need to access this inner control directly, but occasionally a
If you use a DataList control linked to an ADO Data Control and if you want to add a record, you have to create a command button with this code:
The ListView control doesn’t expose any property that lets you limit the amount of text users can type when editing an item’s label. However, you can do the trick with
Microsoft “forgot” to provide the ListView control with the GetVisibleCount property, as it did, for example, with the TreeView control. However, getting this information is as easy as sending a
You don’t need to use icons or bitmap to create buttons with arrows on them. In fact, you just have to select the “Windings” font, set a suitable font size
The ListView control doesn’t expose any property that lets you disable the dragging of its elements. To do so, you must trap the WM_NOTIFY message that the ListView control sends
The ListView control exposes the AfterLabelEdit event to let the programmer validate the text entered in a ListItem, but there is no way to trap keys as they are typed
You can’t directly bind a group of OptionButton controls to a Data control, RDO Data control or ADO Data control. However, you can work around this limitation by adding an