Desktop Functions: Smart Device Functions:
|
GetKeyState (user32)
C# Signature:
[DllImport("user32.dll")] User-Defined Types:Notes:Here are some sample values for nVirtKey:
const int VK_SHIFT = 0x10; Tips & Tricks:The Enum Keys in System.Windows.Forms has the key code used for this function, so you don't need to define const Sample Code:This Sample use this API to create a new textbox to support overwrite mode, testing the state of insert key. Imports System.Windows.Forms Public Class MinhaNovaTextbox
Inherits System.Windows.Forms.TextBox
Private Declare Function GetKeyState _
Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs) End Class Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|