Insert/Overwrite mode
How can I detect the state or mode of the Insert key?
Whether the current state is Insert or Overwrite?
(VB 2005)
How can I detect the state or mode of the Insert key?
Whether the current state is Insert or Overwrite?
(VB 2005)
Various functions for getting the status of various keyboard states and the Local time on the machine
My.Computer.Keyboard.NumLock
My.Computer.Keyboard.CapsLock
My.Computer.Keyboard.ScrollLock
and the following should get you the insert key status
Private
Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Integer) As Integer
Const VBKeyInsert As Integer = 45
' Get the current state of the Insert key / Overstrike
Function GetInsertKey() As Boolean
GetInsertKey = GetKeyState(VBKeyInsert)
End Function
Hope that gets you going.