
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
This addin greatly simplifies adding error handling to VB programs. Simply register the DLL using REGSVR32 and the addin will be added into the Visual Basic tools menu. Keep the
ascally RecursionExtensible Stylesheet Language Transformations, or XSLT, allows you to transform XML documents into other XML documents using XSL. Using XSLT can be very trying, but it is, in fact,
ave you visited sites that allow you to “E-mail this page to your friend”? Have you tried it and sent the page to yourself to see what it looks like?
nce you get past the point of creating a solid database design and ensuring the integrity of your database, inevitably you need to know about the objects in your database.
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
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











