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

DevX - Software Development Resource

Idle Processing Time

Question: I wanted to find the copy files wait screen (where it shows a file jumping from one folder to another). How can I do this and what is it

DevX - Software Development Resource

Capturing the Output of a MS-DOS Program

Have you ever heard of redirected input or consoleapplications? Have you ever had the need to launch MS-DOS programs, wait for them toterminate, and then dump their output to screen?

DevX - Software Development Resource

Static Variables are slower than Dynamic ones

Referencing a static local variable in a procedure is 2-3 times slower than a regular local, dynamic variable; if you want to really speed up your procedures, convert all static

DevX - Software Development Resource

Manufacture a Missing value

Visual Basic doesn’t provide you with a means for creating a Missing value, a feature that in some cases would prove useful in order to simplify the syntax of calls

DevX - Software Development Resource

UseMnemonics property for bound Label controls

If your forms contain Label controls used to display data from a database, set their UseMnemonic property to False. In fact, if you leave this property to its default value

DevX - Software Development Resource

Items of ParamArray can be Missing

When using the ParamArray keyword within a procedure, always remember that when the procedure is invoked from elsewhere in the program one of the argument might be omitted, and you

DevX - Software Development Resource

Correct usage for binary compatibility settings

When working on an updated version of a COM component, you should always enforce Binary Compatibility in the Component tab of the Project Properties dialog box. When enforcing binary compatibility

DevX - Software Development Resource

Counting Bits

It seems that the only way to count the number of 1’s or 0’s in a binary value is creating a loop that iterates on all the 16 or 32

DevX - Software Development Resource

InstrLast – Find the last occurrence of a substring

‘ returns the last occurrence of a substring’ The syntax is similar to InStrFunction InstrLast(ByVal Start As Long, Source As String, search As String, _ Optional CompareMethod As VbCompareMethod =

DevX - Software Development Resource

Never use the End statement

There are a lot of risks involved in using End in VB programs: your databases might not be correctly closed, your objects are not correctly terminated, etc. You should always

DevX - Software Development Resource

Correctly set scrollbars’ width and height

You should always modify a vertical scrollbar’s width and a horizontal scrollbar’s height to conform to the display resolution. You can learn the suggested size (in pixels) using the GetSystemMetrics

DevX - Software Development Resource

Always run a component using Full-Compile

When testing a component in the IDE, always perform a full compilation. This ensures that VB checks the syntax of all the code in the component, which in turn guarantees

DevX - Software Development Resource

DirExists – Check that a directory exists

‘ Return True if a directory exists’ (the directory name can also include a trailing backslash)Function DirExists(DirName As String) As Boolean On Error GoTo ErrorHandler ‘ test the directory attribute

DevX - Software Development Resource

FileExists – Check that a file exists

‘ Return True if a file existsFunction FileExists(FileName As String) As Boolean On Error GoTo ErrorHandler ‘ get the attributes and ensure that it isn’t a directory FileExists = (GetAttr(FileName)

DevX - Software Development Resource

PrintRotatedText – Display a rotated message

Const LF_FACESIZE = 32Private Type LOGFONT lfHeight As Long lfWidth As Long lfEscapement As Long lfOrientation As Long lfWeight As Long lfItalic As Byte lfUnderline As Byte lfStrikeOut As Byte

DevX - Software Development Resource

Access Help More Easily

Several developers have complained that in order to use Visual Studio 6.0’s online help, they must keep the MSDN Library CD in their CD-ROM drive, or copy all 680 MB

DevX - Software Development Resource

Redirect Based on Time of Day Using JavaScript

Redirecting based on the time of day is fairly easy to do. One thing to remember, however, is that because client-side JavaScript runs in the user’s browser, the time your

DevX - Software Development Resource

Maximize VB’s MDI Memory

If you use the VB development environment in MDI mode (the default) and you like your code windows maximized, you might have noticed that, unlike VB5, VB6 doesn’t remember this

DevX - Software Development Resource

Class Module(.cls) vs. Module(.bas)

Question: For the same global function, what’s the difference between placing it in a global module and in a class module?Are there any performance issues involved? If so, which way

DevX - Software Development Resource

Rounding function

Question: Is there a way to round numbers to the nearest multiple of n, where n could be any number? For example, if n = 5, it would round 8

DevX - Software Development Resource

String Manipulation

Question: I have a VB app which formats a large text file and then prints it using MS Word. I need to include what amounts to a thick underscore in

DevX - Software Development Resource

ActiveX EXE vs. DLL

Question: I have an ActiveX dll into which I can pass an existing ImageList containing a set of images. This works fine and means that I only have to maintain

DevX - Software Development Resource

DataObject Object

Question: In an event, I declared a dataobjectvariable and instantiated it this way : Dim do_1 as dataobject Set do_1= New dataobject But when I run the program I get