Recent content by Piller187

  1. P

    SetParent acting funny

    That actually doesn't work for non user interface programs. Try it with cmd in .NET 2005. I know every process that is getting started so I won't run into this. Thanks.
  2. P

    SetParent acting funny

    Yeah I did: System.Threading.Thread.Sleep(500) and that works but I don't like the solution. Kind of hacky.
  3. P

    Process.Start giving MainWindowHandle 0

    When I do Process.Start for anything I run into issues. If I just run the code the MainWindowHandle is 0, but if I step through the code it comes back with a valid handle. Any ideas?
  4. P

    SetParent acting funny

    That doesn't work either. The only way I get a non 0 handle is if I step through the code. This doesn't make any sense.
  5. P

    SetParent acting funny

    I did this little check and it appears Start doesn't wait until the process has a handle, cause the messagebox comes up. Me.SuspendLayout() Dim runProcess As New System.Diagnostics.Process Dim info As New System.Diagnostics.ProcessStartInfo info.FileName =...
  6. P

    SetParent acting funny

    I have this small chunk of code in an MDI form. When I press a menu item it does this: Me.SuspendLayout() Dim runProcess As New System.Diagnostics.Process Dim info As New System.Diagnostics.ProcessStartInfo info.FileName = "NotePad.exe" info.WindowStyle...
Top Bottom