The Latest

DevX - Software Development Resource

Display the ListBox of a Combobox Automatically

To display the List Box of a Combobox automatically, without clicking it, you can use the SENDKEYS (“Key”,[Wait]) function. First, create a VB standard exe project. Then add a combo

DevX - Software Development Resource

Create a Developer’s Extract of a Production Database

aving a development environment provides excellent software change management because it ensures secure, isolated testing and production environments. However, for many IT shops, maintaining three environments is too much overhead.

DevX - Software Development Resource

Dashed lines with custom caps

You can set properties of the Pen object to create custom lines. For example, you can use the DashStyle enumerated property to draw dashed lines using a predefined pattern, and

DevX - Software Development Resource

Building arrays on the fly

VB.NET supports the creation of arrays on-the-fly, by using the New operator. For example, look at the following code, that uses GDI methods to display few connected lines ‘ Get

DevX - Software Development Resource

Create a gradient background

a gradient brush is a brush that contains all the color nuances that vary from a starting color to an ending color, like the typical background screen of many installation

DevX - Software Development Resource

Drawing B

GDI+ supports two different forms of a complex curve that can’t be represented as an arc of a circle or an ellipse: a cardinal spline and a B Related Posts

DevX - Software Development Resource

Drawing Cardinal splines

GDI+ supports two different forms of a complex curve that can’t be represented as an arc of a circle or an ellipse: a cardinal spline and a B Related Posts

DevX - Software Development Resource

The High Price of Process

ot so many years ago, when you went to buy a new car, among the many decisions you’d have to make about your “options” was whether or not you wanted

DevX - Software Development Resource

Take Advantage of SQLXML with ASP.NET

QLXML is a set of supplemental tools that extend SQL Server’s existing support for retrieving and storing XML data. With SQLXML 3.0, you are now able to use SQL Server

DevX - Software Development Resource

The MapPath method

The ASP.NET Page object exposes the MapPath method, which converts a virtual path into a physical path, so it’ is useful for passing arguments to objects that don’t work with

DevX - Software Development Resource

List all COM components on local machine

The following routine parses the registry and lists all the installed COM components: ‘ this code assumes that you have used this Imports statement’ Imports Microsoft.Win32′ Print ProgID, CLSID, and

DevX - Software Development Resource

Check whether Microsoft Word is installed

The .NET frameworks provides a set of classes that let you work with the Registry, so it is quite easy to create routine that looks for specific keys to determine

DevX - Software Development Resource

List all running Windows processes

The System.Diagnostics.Process class exposes the GetProcesses static method, that returns a list of all running processes. It is quite easy to leverage this feature to display all running processes in

DevX - Software Development Resource

Launch another process in a specified directory

The System.Diagnostics.Process class provides several methods to launch and controls other Windows processes. For example, the following code sample shows how to run Notepad, pass arguments to it, and run

DevX - Software Development Resource

Gaining Control of the .NET ListBox

lassic VB ListBoxes held a simple array of strings used for the list, and a parallel ItemData array that held a list of Long numeric values. Using the two in

DevX - Software Development Resource

How to Add Tooltips Using JavaScript

By utilizing the CLASS attribute, you can assign the same set of style definitions to each tooltip. The basic syntax of the tooltip is as follows: Text to be displayedWhere

DevX - Software Development Resource

Swap List Items in a Given Direction

//Implementation of JS Functions//——————————//To Move up//To Move down Related Posts Go Comes to the MainframeHow to Check for a NULL Value and an Empty StringThe Importance of Red Teaming in

DevX - Software Development Resource

Checking the Free Space on a Drive

You can obtain the free space details of each drive by executing this stored procedure: Master..xp_fixeddrivesdrive MB free—– ———–C 1317D 7194E 3930(3 row(s) affected) Related Posts Alter the Background of

DevX - Software Development Resource

Exiting a Nested Loop

Sometimes, you need to exit a nested loop early, and the break; statement will only let you exit one level of a loop. Use a flag to indicate if the

DevX - Software Development Resource

Sorting a String Alpabetically

To Sort a String in alphabetical order instead of ASCII order (i.e A,a,B,b not A….Z,a….z), use the Collator class from the Java.text package.Here Related Posts Find and Activate External WindowsHANA

DevX - Software Development Resource

Reading Properties from a File

It’s not too much trouble to read a few arguments from the command line. It really becomes a problem if you have to read 50 or more arguments. One solution

DevX - Software Development Resource

Avoid Errors on Assigning Null Values

Whenever you read a database field, concatenate an empty string to the field value before assigning it to a variable or control property. This prevents the program from giving an

DevX - Software Development Resource

Passing ByVal to ByRef Parameters

By default, VB passes all arguments to a procedure by reference, which means the procedure can change the values of the variables you pass. However, there Related Posts How to

DevX - Software Development Resource

Center Your Logo on MDI Forms

You can display a logo in the middle of your MDI form. The logo stays in the middle even when the MDI form is resized. After creating your own MDI