The Latest

DevX

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

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

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

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

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

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

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

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

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

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

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

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

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.

DevX

Creating Usable Page Templates in ASP.NET

ages in Web applications often share common UI components, such as headers, sidebars, and footers. Developers often seek to encapsulate these common components into a page template, which each page

DevX

FindFiles – Finding all files with a given filespec

‘ Finding all files with a given filespec into an ArrayList. Optionally scan ‘ also subdirectories of the input dir” Example:’ Dim files As New ArrayList’ FindFiles(files, “D:Articles”, “*.doc”, True)’