944,092 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 5696
  • VB.NET RSS
Sep 13th, 2007
0

FindWindow Problem

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Sunzara is offline Offline
1 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: query insertion in vb.net
Next Thread in VB.NET Forum Timeline: Need a BE project idea in VB.NET(Urgent)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC