FindWindow Problem

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 1
Reputation: Sunzara is an unknown quantity at this point 
Solved Threads: 0
Sunzara Sunzara is offline Offline
Newbie Poster

FindWindow Problem

 
0
  #1
Sep 13th, 2007
I am developing a program in Visual Basic .Net 2005 to launch an external program, using the Process Control.
I am trying to use FindWindow to retrieve the handle of a top-level window.
Declare Auto Function FindWindow Lib "USER32.DLL" (ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr

However, the external program has two windows with the same WindowName, and FindWindow does not always obtain the handle to the right window. The class names of the two windows are different. None of my windows are parent or child windows.

Some insight on how to solve the problem will be very valuable.

Kind Regards
Sunzara
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC