The Latest

DevX - Software Development Resource

MK? And CV? – Convert numbers to strings and back

The following routines convert a numeric value into a string that represents the number, and vice versa. They are useful for reading data written by QuickBasic programs, because the QuickBasic

DevX - Software Development Resource

Checking (from a VB6 program) whether the .NET Framework is present

‘ Return a Boolean value indicating whether the .NET Framework is installed’ Note: this function require the CheckRegistryKey functionsFunction IsDotNetFrameworkPresent() As Boolean Const HKEY_LOCAL_MACHINE = &H80000002 IsDotNetFrameworkPresent = CheckRegistryKey(HKEY_LOCAL_MACHINE, _

DevX - Software Development Resource

Get Mouse Position Anywhere, Anytime

Some control events provide the mouse pointer’s current position within the control’s client area; others provide only the screen coordinates of the mouse pointer (the same as returned by Cursor.Position).

DevX - Software Development Resource

SelectItemFromText – Select the ListControl element with a given text

‘ Select the ListControl element with a given text’ Example: SelectItemFromText(ListBox1, “hello”)Sub SelectItemFromText(ByVal lst As ListControl, ByVal value As String) lst.SelectedIndex = lst.Items.IndexOf(lst.Items.FindByText(value))End Sub Related Posts T-SQL FORCEPLANWhat Is Website

DevX - Software Development Resource

EvalFileName – Ensure that the basename of a file or directory is valid

‘ EvalFileName ensures that the basename of a file or directory’ conforms to the Microsoft file naming guidelines (see MSDN webpage)’ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/’ naming_a_file.asp” Return value:’ True = Valid basename’ False

DevX - Software Development Resource

Using the CreateDirectory API function

The VB’s MkDir function creates a directory in a specified path. If the directory already exists, MkDir raises error 75 (Path/file access error); yet, it raises the same error code

DevX - Software Development Resource

SelectItemFromValue – Select the ListControl element with a given value

‘ Select the ListControl element with a given value’ Example: SelectItemFromValue(ListBox1, “hellovalue”)Sub SelectItemFromValue(ByVal lst As ListControl, ByVal value As String) lst.SelectedIndex = lst.Items.IndexOf(lst.Items.FindByValue(value))End Sub Related Posts Understanding Memory Availability and

DevX - Software Development Resource

Build a Lightweight XML DOM Parser with C#

When you don’t need the full capabilities of an XmlDocument object, you can use an XmlTextReader, the SimpleElement class explained by Guang Yang, and a Stack to create the lightweight

DevX - Software Development Resource

Build Your Own Lightweight XML DOM Parser

Editor’s Note: This tutorial is also available in a version for Java developers. Get the Java version. ML is rapidly gaining popularity with application developers as a data storage and

DevX - Software Development Resource

SAP iViews: Portal Components in Java

he Enterprise Portal (EP) is SAP’s corporate portal application that runs primarily on its own J2EE-certified Web application server. Java iViews, the portal components (or portlets) in SAP, deliver business

DevX - Software Development Resource

Writing Data Safely with the CKPTFile Class

sing memory-mapped files can get you tremendous performance gains, but memory-mapped files are very delicate: any change is immediately reflected in the filesystem. This article describes a checkpointing system that

DevX - Software Development Resource

Mock Pugilists Raise Fists Over Pet Shop

s is often the case in title fights, it didn’t really get interesting until the last round. On an otherwise uninspiring Monday night, in the grand ballroom of a Redwood

DevX - Software Development Resource

Generate and Modify Images with GDI+

ost Windows applications need to use graphics or images to let users work with the images directly, or to enhance the user experience. Most applications can accomplish this with static

DevX - Software Development Resource

Automatically Upgrade Your .NET Applications On-the-Fly

ich client, (or in .NET terminology, “Windows Forms”) applications provide a great user experience in terms of functionality, usability, operating system and inter-application integration. Unfortunately, they have also suffered from

DevX - Software Development Resource

TurboVB Lite

TurboVBLite is the freeware version of TurboVB. It provides eighteen add-ins that make VB development easier and faster. It helps sorting and writing procedures and properties, error handlers, variable declarations,