CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Posts
    322

    Using FindWindow()

    I'm launching a COM server from a VB app,and want to make sure the COM server actually starts and is visible.

    After launching the COM server, I'm calling

    FindWindow("WindowName") but only have a partial string of whatis actually
    in the COM server's titlebar.

    The reason for this is the title has a version number in it, as well as the year, and each user can have different versions running ontheir system.

    When I call FindWindow() with only the partial name in the titlebar it fails to find the window.

    Is there any other way I can verify that a window is visible, without using the full title string of the COM server?


    thanks
    Last edited by cappy2112; March 4th, 2006 at 09:19 PM.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Using FindWdino()

    That shouldn't matter. I can find Notepad by searching for Notepad, when it is "Untitled - Notepad" FindWindow finds partial strings.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured