The Latest

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

DevX - Software Development Resource

Object Properties as Parameters Are ByVal Only

In VB, we can use a function/sub call to return results by passing parameters by reference (although it Related Posts Rising cloud costs challenge digital transformationOpen-Source vs Proprietary AI: Epic

DevX - Software Development Resource

App.Path is Inconsistent

The path returned by App.Path is inconsistent. If the program is running in a root directory, the path will have a backslash on the end. Otherwise, it won Related Posts

DevX - Software Development Resource

VBScript for “ShowOpenDialog”

Ever want to use the Common Dialog “ShowOpenDialog” but were frustrated because it required that Visual Studio be installed on each user’s PC?Here’s an alternative written in VBScript that can

DevX - Software Development Resource

Internet Doomsayers Exaggerate Dangers

ust before Christmas, in an annual telebriefing designed to predict future technology trends, John Gantz, chief research officer of International Data Corp. (IDC), in Framingham, Mass., remarked that “a major