AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

GetFocus

The GetFocus function retrieves the handle of the window that has the keyboard focus, if the window is associated with the calling threadís message queue.

VB4-32,5,6
Declare Function GetFocus Lib "user32" Alias "GetFocus" () As Long

VB.NET
System.Windows.Forms.Form.ActiveForm

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
User32

Return Values
If the function succeeds, the return value is the handle of the window with the keyboard focus. If the calling threadís message queue does not have an associated window with the keyboard focus, the return value is NULL.

Examples

Related Functions

No VB.NET Example Found

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/