c# Programming Glossary: microsoft.visualbasic.interaction.shell
Starting a process without stealing focus (C#) http://stackoverflow.com/questions/2121911/starting-a-process-without-stealing-focus-c way within the .NET framework that I found to do this is Microsoft.VisualBasic.Interaction.Shell with Microsoft.VisualBasic.AppWinStyle. Minimized Normal NoFocus.. focus that's all. And you shouldn't feel bad about using Microsoft.VisualBasic.Interaction.Shell if it solves your issue. You can also use Reflector to see the.. with a random guid or something to make it unique. Microsoft.VisualBasic.Interaction.Shell @ cmd.exe c start cmd.exe k title NEWWINDOW AppWinStyle.NormalFocus..
How to set focus back to form after opening up a process (Notepad)? http://stackoverflow.com/questions/8881038/how-to-set-focus-back-to-form-after-opening-up-a-process-notepad just add this.Focus to the last line.. Even this worked Microsoft.VisualBasic.Interaction.Shell @ notepad.exe D abc.log Microsoft.VisualBasic.AppWinStyle.NormalNoFocus..
|