devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

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

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

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

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

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

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

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

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

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)

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

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

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

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

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

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

Contain Tab Groupings Within a Frame

The best way to work with the tab control is to set up a different frame for each tab. If you set the frames to be indexed, you can quickly

View the Right Side of a Truncated String

You see trailing ellipses (…) when VB truncates either the expression or data portion of a data tip (the mouse-hover watch value you get while debugging). This is great if

Determining the Angle Between Two Lines

In graphical applications, you often need to know the angle between two lines. You can move their intersection point to the origin easily, so all you need to do is

Flash MX Is a Big Step Forward

acromedia just announced the sixth version of the Flash IDE and player, Flash MX, which positions Flash as the vanguard of an entirely new project strategy, called Macromedia MX. Flash

Showing and enumerating MDI child forms

An MDI child form is a regular form whose MdiParent property points to its MDI container form, so the code that creates and displays a child window is very simple:

Multi-column menus

The new Break and BarBreak properties of the MenuItem object let you create menus with multiple columns. All you have to do is set either property to True for the

Copying data into the Clipboard

Copying a piece of information into the clipboard is as easy as calling the Clipboard.SetDataObject: you can pass this method a string, an image, and so on. If you pass

Boolean Conversion

Numeric values and pointers are implicitly converted to a Boolean value in conditional expressions. For example: void *p = get_ptr();if(p){ // process p} A zero value evaluates as false. All

Using Pointers as Integers

In the early days of C, pointers were plain integers. Relics of this approach can still be found in vintage APIs and legacy code. For instance, the ANSI C header

Notes about the system() Function

The system() function (declared in ) launches another program from the current program. As opposed to what most users think, it doesn’t return the exit code of the launched process.