I have a button with a command that need to open a file in Notepad and I have the folowing code:
Process.Start("notepad.exe", path);
This is working, but when I press the button second time, I dont need to open the file again, I want to bring it in focus, to be the active window.
EDIT I can open diferent files in notepad, but when I press again the button it need to bring in focus the notepad with the correct name.
How can I do this?