Jump to content
Xtreme .Net Talk

How to get information about a Window, and trouble with Process.WaitForExit


Recommended Posts

Posted

I'm tryin to do the same thing with waitforidle methods. Getting the windowtitle and handle for manipulating the size and position. However when I start iexplore.exe (p. example) it terminates before loading the complete website.

 

Please help, perhaps some example coding?

 

Thnx.

Intellectuals solve problems, geniuses prevent them!
Posted

That's not what I meant. I already found that wrapper. :D

 

I'm starting processes from vb.net with Process.start(); However sometimes it seems that the mainwindowhandle for such a process is immediately 0. I can't get the window handle anymore from that process. Is there a workaround? Every window has it's own unique handle so it shouldn't be 0 right.

 

Also the waitforidle method doesn't seem to be doing anything. :-(

 

Help please?

Intellectuals solve problems, geniuses prevent them!
Posted

Did you try Process.Refresh or create a new instance of the Process object using Process.GetProcessById ?

Also, is Process.WaitForInputHandle returning false?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...