









Prevent dragging elements in a ListView control
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 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
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
Here’s a simple way to highlight the current word in a TextBox control (i.e. the word where the caret is): Text1.SetFocusSendKeys “^{LEFT}+^{RIGHT}” Similarly, you can highlight the current line in
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