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 6
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 CodeGuru Developer Columns
Go hands on in using each of the standard library's five sequence containers.
Continuing this series on .NET controls, Part 3 will talk about ListBoxes.
Here's a beginner-level discussion of using checkboxes in your .NET programming.
Explore how to create and use a Ubuntu virtual machine.