WaitForExit
-
Hi, I have a little problem: I'm trying to open notepad.exe from my windows application and I'm using a Process and WaitForExit on it. Notepad stats correctly but when I try to move its windows I see the movement on the caller application. Does anyone know why and how can I fix it? Here there's the code: Process newProcess = new Process(); newProcess.StartInfo.FileName = filename; newProcess.Start(); newProcess.WaitForExit(); thanks! Loveday -- modified at 9:05 Thursday 1st September, 2005
-
Hi, I have a little problem: I'm trying to open notepad.exe from my windows application and I'm using a Process and WaitForExit on it. Notepad stats correctly but when I try to move its windows I see the movement on the caller application. Does anyone know why and how can I fix it? Here there's the code: Process newProcess = new Process(); newProcess.StartInfo.FileName = filename; newProcess.Start(); newProcess.WaitForExit(); thanks! Loveday -- modified at 9:05 Thursday 1st September, 2005
Loveday78 wrote: see the movement on the caller application Could you explain it a bit more? Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
Loveday78 wrote: see the movement on the caller application Could you explain it a bit more? Regards Senthil _____________________________ My Blog | My Articles | WinMacro
Sorry, i'll try: when i move notepad's window i see as if there were many windows; a sort of tail stating from the original location and ending in the new location of the window. This only on the screen's region over the "parent" application (the one that started the process). I have no problem if i don't use WaitForExit (but i need to). Better? -- modified at 2:44 Friday 2nd September, 2005
-
Sorry, i'll try: when i move notepad's window i see as if there were many windows; a sort of tail stating from the original location and ending in the new location of the window. This only on the screen's region over the "parent" application (the one that started the process). I have no problem if i don't use WaitForExit (but i need to). Better? -- modified at 2:44 Friday 2nd September, 2005
Use threading to start notepad on a new thread. www.lovethosetrains.com