devxlogo

Tip Bank

Return Focus After Button Click

Here’s an easy way to return the focus to a control after the user clicks on a button on the screen. If you use the keyboard, you can save time

Determine Which ListView Column Was Checked

When using the ListView control in list mode (Listview.View = lvwList), no property indicates which column the user clicked on within the selected row. The ListView’s HitTest method returns only

An Alternative STL Implementation

The STLport organization offers an alternative implementation of the Standard Template Library. You can install the alternative instead of using the existing STL implementation shipped with your compiler. The creators

Close all MDI Children Simply

This code allows you to close all the MDI child forms in an MDI form at once. First, create a menu item in the MDI form, then paste in this

Efficient Array Copying

Suppose you want to assign the contents of a two-dimensional array to another two-dimensional array: int weekly_hours[5][5]; // source int another_array[5][5]; // destination You can use a nested loop to

Control How Browsers Cache Your Page

Question: Is there a way to force a page to load from the server rather than from the cache? The META refresh and onLoad=reload() both just send the page into

Problems Connecting to an Access Database

Question: I created an ASP page through Microsoft Access. When I click the hyperlink that runs this page, I get nothing back from the query that is run. It’s almost