The Latest

DevX - Software Development Resource

Linking a file in Visual Studio .NET

If in VS.NET you add to the current project an existing file that’s located outside the current project’s directory, the file is first copied in the project’s directory, and then

DevX - Software Development Resource

Measuring a string drawn with a specific font

When you’re dynamically drawing text (either on a Windows Form or Web Form application), you may need to calculate the width and height of a string printed with a particular

DevX - Software Development Resource

New S# Language Adds Capabilities for .NET Developers

February 12, 2003?This month, SmallScript Corp.will debut a new .NET language: S#. S# gives the .NET platform its first Smalltalk implementation, and adds formidable new capabilities to the .NET language

DevX - Software Development Resource

How to Embed Resource Files in .NET Assemblies

his article describes how to use .NET’s ability to embed XML files, icons and other files in an assembly so your code can access them at run-time. Embedding the files

DevX - Software Development Resource

Generate XML Mapping Code with JAXB

f you spend any time at all writing DOM or SAX code, then you need to know about the Java Architecture for XML Binding (JAXB). It rapidly generates XML mapping

DevX - Software Development Resource

How to Check for Open Cursors in an Oracle Database

If you are using Oracle, you might have faced the following error sometime during the development/testing cycle. ORA-01000: Maximum open cursors exceeded How do you check for open cursors in

DevX - Software Development Resource

Disable the Alt+F4 Key Combination to Keep the Window from Closing

Assume you have an MFC application. The solution is to override the virtual function: virtual BOOL CWinApp::ProcessMessageFilter(int code, LPMSG lpMsg); The following code demonstrates: BOOL CMyProgramApp::ProcessMessageFilter(int code, LPMSG lpMsg){ if(WM_SYSKEYDOWN

DevX - Software Development Resource

Using the JEditorPane to Display HTML File

The JEditorPane provides a mechanism through which you can add support for custom text formats. A standard editor pane can understand plain text, HTML, and RTF. import javax.swing.*;import javax.swing.event.*;import java.awt.*;import

DevX - Software Development Resource

The Foundation VB Library

The Foundation library is intended to provide VB developers with convenience and simplicity of working with data available for their C++ colleagues from standard STL library. The author tried to

DevX - Software Development Resource

Relative Urls in user controls

Urls that you set in user-control’s child controls are relative to the user control’s directory, not to the host page’s directory. Say for example that you have an user-control located

DevX - Software Development Resource

Disabling the session state to improve performances

Sessions management consumes server’s resources and memory, thus, if you don’t use them in your application, you should disable them to improve performances. You can disable sessions for the entire

DevX - Software Development Resource

Creating a popup calendar control

Many data entry forms have one or more text fields that the user should fill with a date value. Many sites have a button near these fields that when clicked

DevX - Software Development Resource

Storing Your Secret Data in Windows

Developers often ask me how they can safely store secret information when building secure systems. A secret is any data known only to one or more valid computers, users, or

DevX - Software Development Resource

Merge VBL Files into Your Registry

Use this tip when developing ActiveX components and testing ActiveX OCXs that require license files. These Registry entries allow you to merge VBL file contents into the Registry. You add

DevX - Software Development Resource

Open Namespace Objects From VB

As you probably know, you can open an Explorer window on a directory from VB by using the intrinsic Shell function: Dim TaskId As LongTaskId = Shell(“Explorer c:”, vbNormalFocus) But

DevX - Software Development Resource

Keep Selected Areas in Grid Read-Only

I needed to lock a row on a grid to show totals as well as a percentage row that needed to remain read-only to the user. I didn Related Posts

DevX - Software Development Resource

Duck the Modal Form PopupMenu Bug

Microsoft confirms this bug: If an application contains at least two forms, and one of those forms is displayed modally using a PopupMenu on another form, a PopupMenu on the

DevX - Software Development Resource

Zoom Continuously in Your Image-processing Apps

This code demonstrates how fast you can zoom into images using VB Related Posts Developers Can Now Pre-Order Microsoft HoloLensMolly from China reports Tesla bugIFA Reveals Cool Home GadgetsStanford Project

DevX - Software Development Resource

Quick Split

When you use the Split function from VB6 or VBScript, sometimes you need only a single value and not the whole array. To do this, you can reference the element