devxlogo

The Latest

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

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

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

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

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

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

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

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

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

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

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

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

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

Executable UML: Diagrams for the Future

“The entire history of software engineering is that of the rise in levels of abstraction” said Grady Booch in his talk “The Limits of Software.” Today, we’re at the beginning

Visual SourceSafe Browser Control

This ActiveX control enables browsing of Visual SourceSafe databases in form of a hierarchical tree. The control supports partial hierarchy loading to prevent delays while working with databases containing large

Creating a default button for the page

It is usual for a web form to have more than one button control. How can you set the default button that should submit the form and raise its Click

Creating multi-steps input forms

In a typical user registration form, you may ask for quite a lot of data, such as the first and last name, full address, phone and fax numbers, e-mail address,

Uploading a file on the server

Uploading a file from the client to the server is very straightforward with ASP.NET. Just use the tag and its wrapper class HtmlInputFile. Here’s how you define the control on

Deploy Your J2ME Application on a Sprint Phone

recently tested one of my J2ME MIDlet applications on a Sprint Vision handset. Once on the handset, the application ran great and I needed to make only a few changes

Java History 101: Once Upon an Oak

few weeks ago I was talking to someone about the origins of Java when I realized that I had big gaps in my knowledge of Java’s history. Trying to fill