Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi y'all,

 

First of all, my programming languagesuite is .NET.

 

Here's my problem:

I'm tryin' to find out de windowhandles from the window generated from a parent application. MSN Messenger is an excellent example. The parent application is msnmsgr.exe and start a main window with your contacts listed. When clickin' on a contact you get a new window. I want to find this windowhandle without havin' to click on it.

 

Now on to my application. I'm starting MSN Messenger as a process from my own application (NOT shell) and the process starts with a unique processID. When clickin' on a contact the new window get the same processID but a different windowhandle. How can I get this from code?

 

Is this possible and if so, how?

 

Pleaze help,

 

Thnx.

 

D@n.

Intellectuals solve problems, geniuses prevent them!
Posted
Ok... call me dense. Are you wanting to do this for windows within your own application or in another running application? The method is a bit different for each.

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

  • 2 weeks later...
Posted
Ok... call me dense. Are you wanting to do this for windows within your own application or in another running application? The method is a bit different for each.

 

To be short: I want to do this from another application like MSN Messenger. My own application starts by example MSN Messenger as a process. MSN generates windows when starting a conversation. These are not available in my windows collection in my own application... Or are they?

Intellectuals solve problems, geniuses prevent them!
Posted
could you iterate the forms collection' date=' finding the active window, then get the handle property? I know each form has a me.handle as an IntPtr value[/quote']

 

That is possible, but the windows generated are from another application, not my own.

Intellectuals solve problems, geniuses prevent them!

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...