Activate an external application Patrik Löwendahl - cshrp.net
This little piece of code uses P/Invoke and SetForegroundWindow and ShowWindow to activate an external process (application). It is the C# version of the Visual Basic.NET AppActivate. Usage:
Interaction.AppActivate("Notepad");
- or -
Interaction.AppActivate(45667);
Download [7kb]
|