Bind a group of OptionButtons to a Data control
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
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
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
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
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
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 java.util.TimeZone class can be used to convertdates and times from local values (default) to othertime zones. The following example shows how: import java.util.*;public class TimeZoneTest {public static void main(java.lang.String[]
Most Java programmers close a connection with database directly without closing the ResultSet. This is okay with standalone Java programs, where the Java compiler automatically closes the Resultset for you,