-
Determining state of CAPS LOCK and NUM LOCK
All of the (client) forms that I have created over the last few years include
a status bar with the CAPS LOCK and NUM LOCK states shown on them. With
VB.NET, however, I can not find a way to query the state of these to set
them. Any clues?
-
Re: Determining state of CAPS LOCK and NUM LOCK
In article <3cac4aab$1@10.1.10.29> (from David Williams
<dwilliams@strohlsystems.com>),
>
> All of the (client) forms that I have created over the last few years include
> a status bar with the CAPS LOCK and NUM LOCK states shown on them. With
> VB.NET, however, I can not find a way to query the state of these to set
> them. Any clues?
There's nothing in the framework for that:
http://discuss.develop.com/archives/...DOTNET&P=83058
You'd have to PInvoke GetKeyState:
<DllImport("user32.dll")> _
Public Shared Function GetKeyState(VirtKey As Integer) As Integer
End Sub
--
Patrick Steele
Microsoft .NET MVP
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks