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
Become more proficient on the usage of statements to control the flow of execution through a C++/CLI application.
Your computer has a lot of information available to your inquisitive mind. Learn all its secrets with a few lines of code.
Avoid the pitfalls I experienced when installing VS 2015. There's also a brief history of Visual Studio.
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!