The Latest

DevX - Software Development Resource

Capture a Reference to a UserControl

Many programmers are familiar with declaring an object variable in class modules and other places to capture events from a form and handle them in a generic way: Private WithEvents

DevX - Software Development Resource

Find the Associated Executable

Sometimes you might need to determine the full path name to a Windows executable file associated with a given file extension. The usual recourse is to use the FindExecutable API.

DevX - Software Development Resource

No More Blank Data Reports

When generating a data report based on an ADO recordset linked to a remote database (such as Oracle or SQL Server), you can end up with a blank report. Try

DevX - Software Development Resource

Detect a Change of a Windows User’s Locale

While designing multilingual applications, I had to make them respond when a user changes the Windows locale setting Related Posts How To Watch Apple TV On AndroidMarvell debuts Structera CXL

DevX - Software Development Resource

Modernize Your MDI Apps

The MDI look seems to have gone out of favor recently, judging from the popularity of the Explorer and Outlook styles in modern apps. Maybe that Related Posts Hybrid Integrations

DevX - Software Development Resource

Clean Up the MonthView

If you Related Posts Home Depot bolsters B2B with $18.3B acquisitionCORS Support in SpringThe New Surface Laptop Studio 2 Is NutsRepair ship en route to fix Sitka cableHello, World! Meet

DevX - Software Development Resource

Copy Listview Contents to a Clipboard

This easy routine copies the contents of a listview, including column headers, to the clipboard for pasting into Excel or other applications: Public Sub SendToClipboard(ByVal ListViewObj _As MSComctlLib.ListView)Dim ListItemObj As

DevX - Software Development Resource

Create a VB Error Message Reference List

Have you ever wanted to have a hard copy listing all the VB error messages? Create a new standard EXE VB application and drop this code into the Load event

DevX - Software Development Resource

Creating Custom Configuration Settings in ASP.NET

SP.NET Web applications have a built-in way to access simple name/value configuration data. In the Web.config file, you can create an section that lets you store simple name/value pairs. For

DevX - Software Development Resource

Clipping the mouse to a rectangle area

The Clip property of the Cursor is the rectangle within which the mouse cursor is confined, or its value is Nothing if the mouse can move over the entire screen.

DevX - Software Development Resource

Pasting data from the Clipboard

Pasting data from the clipboard requires more code because you must ascertain whether the clipboard contains data in one of the formats you’re willing to process. First, use the Clipboard.GetDataObject

DevX - Software Development Resource

Code Access Security in the .NET Framework

n case you ask yourself how this security model can be useful, just consider if the Windows operating system could currently apply a CAS such that no code downloaded from

DevX - Software Development Resource

ASP.NET process recycling

Application recycling is a great feature that lets you configure an application so that ASP.NET automatically shuts it down and restarts it after a given period or a given number

DevX - Software Development Resource

Discern among servers with the MachineName property

As in classic ASP, you can use the Server object from inside any ASP.NET application. This property returns a reference to an HttpServerUtility class.The HttpServerUtility class exposes only two properties:

DevX - Software Development Resource

Sending files to the browser

The ASP.NET Response object has been greatly expanded in its capability to send output to the client browser. For example, the WriteFile method can send the contents of any text,

DevX - Software Development Resource

Saving HTTP requests for better debugging

The new SaveAs method of the Request object saves the current HTTP request to a file, which can be very useful for logging and debugging reasons. You should pass True

DevX - Software Development Resource

Parse URLs with the System.Uri class

The Url and UrlReferrer properties of the Request ASP.NET object return a reference to the URL of the page and the URL of the page that referred to this one.

DevX - Software Development Resource

Using String-based Data Validation

hat do a command shell, an online ordering system, and a report generator application have in common? Not much, really. Yet they all base their operation on an external source

DevX - Software Development Resource

Learn Better Ways to Manage Data in ASP

lthough you may not be able to switch to ASP.NET at your location, you can take full advantage of XML and XSLT transforms now to make your site more flexible,

DevX - Software Development Resource

Toolwindow for All PC Languages

A very customizable ToolWindow for all development environments(like .NET,Visual Studio6, Java) that inserts text, executes macros, launches programs(with parameters), and launches webpages. More than just inserting simplecode, you have 15

DevX - Software Development Resource

Display a directory tree

Thanks to the GetDirectories and GetFiles methods of the System.IO.Directory class, you need very little code to iterate over all the directories and files of a directory tree. For example,

DevX - Software Development Resource

Filter file names on their names or attributes

The GetFiles and GetDirectories methods of the System.IO.Directory class can take an argument containing wildcards, to filter the result: ‘ Display all the *.txt files in C:DOCS.Dim fname As StringFor

DevX - Software Development Resource

Reading text files

In Visual Basic .NET you read a text file by first opening a StreamReader on it, and then iterating over all its lines until its Peek method returns -1: Dim

DevX - Software Development Resource

Implementing ICloneable – Deep copies

The simplest way to create a generic deep copy routine, that is a procedure that can create a true, distinct copy of an object and all its dependent object, is

DevX - Software Development Resource

Implementing IClonable – Shallow copies

An object that want to support cloning should implement the ICloneable interface. This interface exposes only one method, Clone, which returns a copy of the object. The ICloneable specifics don’t

DevX - Software Development Resource

Create directory paths

Visual Basic 6’s MkDir command, as well as the DOS MD command, can create only one subdirectory and fail if any subdirectory on the specified path doesn’t exist: ‘ This

DevX - Software Development Resource

How to Create a Disaster Recovery Plan

The key to surviving an IT-disabling disaster is a business continuity strategy, a set of policies and procedures for reacting to and recovering from such an event, and the main