The Latest

DevX - Software Development Resource

Working with Microsoft Office Word 2003’s XML

he .doc file format that is still present in Word 2003 is essentially a proprietary binary format; sadly, .doc files are difficult to extract information from. By saving documents in

DevX - Software Development Resource

Expand Your VB6 Printing Repertoire—Part I

Figure 1. Printing and Previewing Plain Text: Here’s the main form of the TextPrinting Project in Part II of this series, along with the print preview form from the same

DevX - Software Development Resource

WSE 2.0: Get Your .NET Web Services Security Up to Spec

n October 2003, Microsoft announced the technical preview of its Web Services Enhancements for .NET (WSE) 2.0 toolkit. This release implements some of the new Web Services Architecture (WSA) specifications

DevX - Software Development Resource

GetCurrentMethodName – Retrieving the name of the current method

‘ Return the name of the method that calls this function.’ The function is useful for logging purposes, for example.” Example:’ Private Sub Button4_Click(…) Handles Button4.Click’ MessageBox.Show(GetCurrentMethodName()) ‘ => Button4_Click’

DevX - Software Development Resource

The SystemInformation Class

System.Windows.Forms.SystemInformation is a little known class that exposes a number of static properties that return information about many system settings, such as: Icon and cursor size (IconSize and CursorSize properties)

DevX - Software Development Resource

GetRandomColor – Generating a random color

‘ Return a random color’ Example: Me.BackColor = GetRandomColor()Function GetRandomColor() As Color Dim rand As New Random Return Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, _ 256))End Function Related Posts Top Web

DevX - Software Development Resource

Select Quick Dates (Current Hour/Week/Month)

The following class retrieves the starting and end dates for the Current Hour/Day/Week/Month/Year: Option ExplicitPublic Property Get CurrentHour() As CollectionSet CurrentHour = New CollectionCurrentHour.Add CDate(Date & ” ” & Format(Now,

DevX - Software Development Resource

Discover Enhanced Image Manipulation with GDI+

s there any reason to do image processing in unmanaged code anymore? GDI+’s managed classes may just be good enough to give the unmanaged approach (mainly in unmanaged C++) a

DevX - Software Development Resource

Dragging & dropping files on a form

Most document-based applications typically allow to open a document file in two ways: with the Open File menu command / toolbar button, or by dragging and dropping the file from

DevX - Software Development Resource

XML: We Ain’t Seen Nothin’ Yet

ML is a fundamentally simple idea?take bits of content and give them identifying tags?but it has far-reaching effects. In just a few short years, XML’s evolution has sparked an explosion

DevX - Software Development Resource

Sending Data to a Port in UDP Format

The ByteBuffer Class (from the java.nio package) helps you to write data in UDP by converting them to the respective bytes they generally occupy. This is especially helpful when trying

DevX - Software Development Resource

Listing Files in a Directory with Perl

The following code: `ls -t ../../html/indexed | awk {‘print $9’}` Will return an array of files, eg: @files=`ls -t ../../html/indexed | awk {‘print $9’}`; @files is now an array containing

DevX - Software Development Resource

A Container for Pointers to Functions

Many times, you’ll find you need to create a container for pointers to functions. The example below demonstrates the syntax for a vector of pointers to functions. For simplicity’s sake,

DevX - Software Development Resource

J2EE Design Strategies That Boost Performance

J2EE takes the hassle out of distributed programming, but there’s a catch. Although you no longer have to contend with such low-level issues as threading, synchronization, or persistence, you also

DevX - Software Development Resource

Export Crystal Reports to PDF

Use this code when you’re developing Web pages and you need to export Crystal Reports to PDF without creating their own files. The undocument FormatEngine property of ReportDocument class (you

DevX - Software Development Resource

Display a Partial Text File Using FSO

This script reads specific lines of text from any text file and then stores the lines in an array that you can assign to a variable for data display. Related

DevX - Software Development Resource

Introducing ASP.NET 2.0 Master Pages

SP.NET 2.0 introduces a new concept known as Master Pages, in which you create a common base master file that provides a consistent layout for multiple pages in your application.