Tip Bank

DevX - Software Development Resource

GetScrollLockKey – Get the state of the Scroll Lock key

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

DevX - Software Development Resource

PressVirtKey – Press and/or release any key

Private Declare Sub keybd_event Lib “user32” (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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