BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | 4 | Next >> |
Registering System-Wide Hot KeysRegistering System-Wide Hot Keys
Some Windows applications execute in the background and are activated only as required. To enhance such a program's usability it is useful to register a system-wide hot key. This allows the software to activate when a specific key combination is pressed.
Toggling Lockable Key StatusesToggling Lockable Key Statuses
The Scroll Lock, Caps Lock and Num Lock keys are three keys on a standard keyboard that have a status that can be either on or off. Using a call to a Windows API function, it is possible to toggle the status of these keys from within a .NET application.
Recycling Files and Folders Part 2Recycling Files and Folders Part 2
The second part of this two-part article revisits sending files and folders to the Windows Recycle Bin. In the first part we used the VisualBasic namespace to perform this task. In the second part we will make use of the Windows API through P/Invoke.
Recycling Files and Folders Part 1Recycling Files and Folders Part 1
If your software can be used to delete files or folders, it can be advisable to move them to the Recycle Bin rather than permanently deleting them. This removes the problems caused by accidental deletion, as recycled files can be easily recovered.
Getting Connected Drive InformationGetting Connected Drive Information
When writing software that accesses the file system, it can be important to obtain a list of the drives that are available. It is also useful to know further details about each disk, such as the type, capacity and free space for each connected drive.
Checking Lockable Key Statuses in .NET 1.1Checking Lockable Key Statuses in .NET 1.1
The Scroll Lock, Caps Lock and Num Lock keys are three toggling keys on a standard keyboard. The status of each of these keys can can affect a Windows application. However, when using the .NET framework 1.1, there is no simple way to obtain their status.
Checking Scroll Lock StatusChecking Scroll Lock Status
The Scroll Lock key is a toggle key that behaves in a similar manner to Caps Lock and Num Lock. The principle purpose for Scroll Lock is to fix the position of the caret, or text cursor, and instead scroll the window when the arrow keys are pressed.
Generating Temporary FilesGenerating Temporary Files
When you need to store information for a short period of time, you may decide to hold the data in a temporary file located on the user's hard disk drive. The .NET framework provides two standard methods that assist in selecting a temporary file name.
Getting the Current Assembly's FolderGetting the Current Assembly's Folder
When you obtain the current working folder for an executing program, this may be a different location to the directory in which the program's assemblies are stored. This article explains how to find the physical location of the current assembly's file.
Checking Num Lock StatusChecking Num Lock Status
The Num Lock status determines whether the numeric keypad on a keyboard can be used to enter numbers or is set to control the cursor position. On notebook computers, Num Lock may alternate between numbers and letters.
<< Previous | 1 | 2 | 3 | 4 | Next >> |