
Get the handle of the edit portion of a ComboBox
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

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 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,

You can use pow() method which is part of the Math classin java.lang for calculating the exponentiation. Java doesnot provide any direct operator (like ‘^’ in VB) for calculating the

You should avoid usage of increment and decrement operators inside other expressions. Increment operator (++) adds 1 to the current valueof the variable and decrement operator (–) subtracts 1 from

Question: How do I convert a class into an abstract base class without using a pure virtual member function in it? Answer: If your goal is to disable instantiation of

Question: Where can I download the HitCount Component for ASP? Do I need to register it on the Web server also? Answer: FrontPage 98 ships with a hit counter component.

Question: I’m doing a Web front for a database that contains data about temperature. How do I calculate an average temperature using SQL code? Answer: Use the AVG function to

Question: How do I do a forward declaration for the STL ‘string’ class? For example: // Foo.hppclass string;class Foo{ string f1(); void f2(const string& str); …} On various compliers (MS,

Using the IE browser application, you can press the key while filling a form to submit the form. Indeed, this is a desirable feature for any Windows application. In order

A design pattern is a design solution to a software problem that occurs within a specific, recurring set of situations. Let’s say you are making software for a problem situation

Banner ads are common on any commercial site these days. But most of them use mechanisms like Server Push, Serve-side objects, or even services of third parties to rotate the

In Java, the reading and writing of 32-bit or smaller quantities are guaranteed to be atomic. By atomic we mean each action takes place in one step and cannot be

Once you’ve established a connection to Microsoft Excel using OLE DB, you’re not out of the woods. You still have to define a Named Range in Excel; then you can

If you need to run a complicated query that returns a large recordset, ADO 2.1 gives you the best of both worlds. Sometimes you just need to put a recordset

If you find yourself repeating the same Execute method in different parts of your code when clearing tables, use this method instead to automate the process. When you already have

These days, most Web developers are discouraged from using frames (with good reason). However, users still like the functionality they provide. FRAME and IFRAME are handy scrolling containers, but you

SafeRef returns a reference to the context wrapper instead of a reference to the object itself. You should never pass a direct reference of a Microsoft Transaction Server (MTS) object

While using OLE DB Provider for Jet to manage Access databases through ADO from VB, follow this tip to help you access a query defined in your database. If the

RDO does not have a FindFirst or Seek method, and as a programmer, you sometimes need to quickly move to a particular record. I had a user who wanted to

You may want to make sure that a client visiting your site cannot cache a particular Web page. However, setting the Response.Expires=0 does not always prevent a browser from caching

It’s easy to add scripting functionality to your VB project, especially if you have been developing through classes all along. The more classes you program, the more objects you can

Microsoft documentation says you can connect to Excel 97 or Excel 2000 using the Microsoft.Jet.OLEDB 4.0 provider. If you use the Microsoft ADO Data Control, however, you will have problems.

Question: How do I convert the Unix epoch time into a readable date/time format? Answer: Informix doesn’t have a built-in function that I know of for this. However, a function

Question: How do I change the name of a database? Answer: From another database, maybe sysmaster, type: RENAME DATABASE oldname TO newname. Related Posts Apple declines as iPhone 16 sales

You can search a file in all the subdirectories of a given drive in VB using a recursive routine based on the Dir$ function, the FileSystemObject component, or the FindFirstFile/FindNextFile