The existing SendKeys class does not have a managed way to activate an external application. MSDN recommends that you should use the FindWindow and SetForegroundWindow APIs. However, this alone does not ensure that the desired application will have keyboard focus while the keys are being sent. This replacement module sends keys directly to the specified window without error.
Latest System Articles - Page 3
Learn how to implement an additional security layer on company web sites by getting the machine ID of the system from registered users along with the user ID and password.
Learn how to launch the main desktop icons, some Control panel items, and more with explorer.exe and Visual Basic.NET 2005.
Discover how to run all the various Control Panel applets from your own program.
Learn how to enable VB6 applications to use function pointers and how to embed native code without using external DLLs.
Learn about a web service method to back up a database from a mobile device using the SQL Backup command and asynchronous method calls.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
Quirky and yet persistent, C++ is a language that keeps programmers coming back to it. Pick up some new ways to wrangle it into your workflow.
The Singleton pattern is very flexible. Learn to wrap it around your little finger.
Learn how to change your screen's wallpaper, screensaver, and its settings as well as change your screen's resolution.
Most developers face a grueling challenge to please their end users. We asked their top challenge is. With over 3,000 responses, the results are now available!