Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WaitForExit

WaitForExit

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Loveday78
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • L Loveday78

      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

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Loveday78 wrote: see the movement on the caller application Could you explain it a bit more? Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      L 1 Reply Last reply
      0
      • S S Senthil Kumar

        Loveday78 wrote: see the movement on the caller application Could you explain it a bit more? Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        L Offline
        L Offline
        Loveday78
        wrote on last edited by
        #3

        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

        T 1 Reply Last reply
        0
        • L Loveday78

          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

          T Offline
          T Offline
          therealmccoy
          wrote on last edited by
          #4

          Use threading to start notepad on a new thread. www.lovethosetrains.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups