The Latest

DevX

Displaying a Local Image in a WebBrowser Control

Instead of using: WebBrowser1.navigate “c:image.gif” Use this: WebBrowser1.navigate “about:” Related Posts Go, Big Data Languages Becoming More Popular, Says IEEEBest Ways to Manage User Facing UIs with Agile PracticesExecute Code

DevX

Compatible Stylesheets with xsl:fallback

The following code is an example of how to use the xsl:fallback element to achieve full compatibility between XSLT different versions. Imagine that some future 5.0 version of XSLT implements

DevX

Determine Your Network Interfaces and IP Names

Use this to determine the names of your network interfaces and IPs. Of course, it can be used only for machines that have more than one network interface. import java.io.*;import

DevX

Compress Binary Messages Using SQL

inary data is natural for computers. Everything running on the computer’s physical layer, in the registers, ALU, memory, and so on, is just a result of manipulating a set of

DevX

JUnit Testing Using Java ME JUnit Frameworks

Unit tests have become a staple part of most Java Standard Edition (SE) and Enterprise Edition (EE) applications?especially those that espouse test-driven development. Kent Beck and Eric Gamma’s original Smalltalk

DevX

Disable the Standard Window Close (X) Button

This code disables the standard Window Close (X) button on the upper right corner of Windows forms: Private Const SC_CLOSE As Integer = &HF060Private Const MF_GRAYED As Integer = &H1

DevX

Using the unparsed-entity-uri XSLT Function

This tip shows how to insert an image into the result-tree of an XSLT transformation using the unparsed-entity-uri function. Suppose you have this element: And an unparsed entity such as

DevX

Using Complex Numbers

The C++ standard library can handle complex numbers. Complex numbers may be used by including . The class std::complex is defined as a template, allowing complex numbers to use different

DevX

Using the Logger to Trace JDBC Driver Managers and Drivers

Both JDBC drivers and the DriverManager use the PrintWriter for logging/tracing. Using java.util.Logger as your logging/tracing tool allows you to take advantage of the Logging framework. Create an adapter class

DevX

Create a SAXSource with InputSource and XMLReader

One way to create a SAXSource is to use a SAX InputSource and an XMLReader object. The transformer, ContentHandler, calls the XMLReader.parse(InputSource IS) method. Here’s an example: … try{ //get

DevX

Object Functions in Use

An object function is a regular C++ object whose class defines the () operator. An object with a () operator can be called like a function: CFoo foo; // just

DevX

Using Multiline Strings in .NET Resource Files

Displaying strings from .NET resource files may be a puzzle if the strings include escape sequences. For example, take the newline (linefeed) character. Suppose you want to display a hardcoded

DevX

Introducing Domain-specific Languages

oftware Factories are one of today’s new buzzwords in IT. This Microsoft initiative is likely to change the way that developers build software in the near future. The Software Factories

DevX

Decorate Your Code with Astonishing Attributes

hen I first saw attributes in Visual Studio .NET, I thought they were some sort of oddity Microsoft had dragged in from Java, C++, or perhaps the Delta Quadrant. They

DevX

Read the First Line of a Text File

This code shows you how to use the instance methods from the FileReader and BufferedReader classes with a Xalan 2 processor to read the first line from a text file.

DevX

Retrieve Totals from a Dataset Without Looping

Have you ever looped through the entire dataset to get the totals you need to put in the footer? The DataTable.Compute method eliminates this hassle by retrieving commonly performed arithemetic

DevX

Removing an Unused Window Service

Removing an unused Window service involves removing your registry key. Go to Start?>Run?>regedit. Find the key: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services Locate the service name you want to remove. Press key to remove the

DevX

Retaining Multiple Sets of User Settings

sers want their forms to be in the same position the next time they open their application. While Visual Studio 2005 out of the box provides a way to store

DevX

Build a Flexible CSS Web Navigation Architecture

he core of any Web site is the navigation mechanism, the menu. If Web sites are primarily about organizing and presenting content, a site’s menu provides the means of traversing