The Latest

DevX - Software Development Resource

Hosting Multiple Domains

Question: How do I host multiple domains with Exchange Server 5.5? I have six domains that I would like to host on this server, but I only know how to

DevX - Software Development Resource

Editing Received Outlook E-mail

Question: In Outlook 97 it was possible to edit the body of a received e-mail message. This is valuable because I ask people for information about themselves, which they e-mail

DevX - Software Development Resource

Offline E-mail But Online Calendar

Question: Do you know of any way to use offline folders by default but to have your calendar work online? (I am using Outlook 2000.) I want to work offline

DevX - Software Development Resource

Check whether a sound card exists

If you are developing a game in VB or an application that plays sounds, you probably want to check that a sound card actually exists. There is an API function

DevX - Software Development Resource

Show the contents of the Recycle Bin folder

You can use the ShellExecute API function to programmatically open a window of Explorer and display the contents of the Recycle Bin. This is the function’s declare: Private Declare Function

DevX - Software Development Resource

EmptyRecycleBin – Delete all files in the Recycle Bin

Private Declare Function SHEmptyRecycleBin Lib “shell32.dll” Alias _ “SHEmptyRecycleBinA” (ByVal hWnd As Long, ByVal pszRootPath As String, _ ByVal dwFlags As Long) As LongConst SHERB_NOCONFIRMATION = &H1Const SHERB_NOPROGRESSUI = &H2Const

DevX - Software Development Resource

Managing Inactivity Timeouts

ne way to implement an inactivity timeout in an application is to keep track of the last time a MouseEvent or KeyEvent was sent to an application. In a separate

DevX - Software Development Resource

Display Selective Data From a Database

n last month’s 10-Minute Solution, you learned how to display data from a database. This time, you’ll see how to use this technique to pick and choose what to display

DevX - Software Development Resource

Convert a Text File to XML

ere’s an interesting conundrum. You have an application that doesn’t have an object model (or has one that’s so hideously complex that you’d just as soon not pay a programmer

DevX - Software Development Resource

Outlook View Control

he Outlook View control released by Microsoft allows you to display an Outlook folder in your application. The folder displayed in the control is fully functional; you can create, open,

DevX - Software Development Resource

Lazy Versus Eager Instantiation

There are techniques for creation of objects (read allocation of memory)widely known as lazy Instantiation and Eager Instantiation.Lazy instantiation is a memory conservation technique, by which, a programdelays the creation

DevX - Software Development Resource

Get all your Threads and Thread Groups

It might be useful to garner an enumeration of all thread groups and theirthreads in your running application. The following method shows you how todo that: public void printOutThreadGroups(){ //create

DevX - Software Development Resource

MTSTransactionMode in Visual Basic 6.0

Each MTS component can contain one or more classes which, in MTS terms, are referred to as MTS Objects. Visual Basic 6.0 provides a new property called MTSTransactionMode that can

DevX - Software Development Resource

Locate the Temp Folder

In your apps, do the right thing: Use the computer’s Temp folder to hold your temporary files. To find that location, paste this code into the Declarations section of a

DevX - Software Development Resource

Ask the Form Itself Whether it’s Loaded

Occasionally you initialize a form but don’t load it. You might do this to read in initial application Registry values. After that, any references to control properties on the form

DevX - Software Development Resource

Catalog Your Graphics

I needed a printed catalog of GIF images in a directory. So I wrote a routine that creates a new document, and inserts an image for each GIF file in

DevX - Software Development Resource

Perform Faster String Manipulations

Are you dealing with strings you have to parse if you want to drop one special character or change it into another? Keep this trick in mind. Even though this

DevX - Software Development Resource

Make Sure Msgbox is on Top

When you implement the Always on Top feature with VB forms using SetWindowPos and HWND_TOPMOST, message boxes are shown below the topmost form. To overcome this, you can use the

DevX - Software Development Resource

Prompt for Password in a Separate Dialog

Question: I want to display the “Enter Network Password” box when a user accesses my site. I can display an ActiveX control on my HTML page (ObjectID Tag) but it

DevX - Software Development Resource

Strip Leading Zeros in ASP Output

Question: How do I strip off leading zeros from data displayed from an ASP page? Answer: Use the FormatNumber function.If value = “0000046” Then FormatNumber(value,0) will result in 46. FormatNumber(value,2)

DevX - Software Development Resource

Retrieve Table Names From an Access Database

Question: How do I retrieve all the table names from an Access database using ASP? Answer: Make sure you have an ODBC DSN to point to your database. Then use

DevX - Software Development Resource

Access Client’s Windows Date Format

Question: I have a date field on my ASP page. I want to restrict the user for entering only the dates in his Windows 95 machine’s date format. How can

DevX - Software Development Resource

Bypass the ‘RePost’ Message

Question: When I create an ASP page that gets sent to the browser, if users press the refresh button they get a message asking to repost from old data. How