devxlogo

Tip Bank

GetNumLockKey – Get the state of the NumLock key

Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey As Long) As _ Long’ Get the current state of the NumLock keyFunction GetNumLockKey() As Boolean GetNumLockKey = GetKeyState(vbKeyNumlock)End Function

Auto Select Content Component

We almost always need to develop forms in which the contents to the control have to be selected whenever the user tabs to a textbox or a combobox. For this

Use SourceSafe Shadow File Option

Microsoft Visual SourceSafe (VSS) doesn’t store its data in a format you readily can use, and MSwouldn’t put the “Analyze and Fix” option on your menu if it wasn’t needed.To

Using Distributed Queries on SQL Server 7.0

SQL Sever 7.0 allows developers to execute commands against OLE DB data sources on different servers. In order to execute commands on remote servers, the SQL Server instance where the

Assigning Integers to enum Variables

C and C++ differ in their handling of enum types. While C allows you to assign a plain int to an enum variable, C++ doesn’t. Therefore, a C compiler will

Unbuffered Streams

The standard stream object cerr and its matching wide-character version, wcerr, are unbuffered. This means that they are automatically flushed after each operation; they do not buffer data. This feature