Results 1 to 5 of 5

Thread: hWnd

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2001
    Location
    San Jose
    Posts
    26

    Exclamation

    FindWindow(vbNullString, App.Title) returns handile of which window? and what is the relation with that valus and any other Forms hWnd of that application?

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    It returns the hWnd of the window that you pass the title of.

    A = FindWindow(vbNullString, App.Title) wouldn't work.
    A = FindWindow(vbNullString, Me.Caption) would work.
    A = Me.hWnd
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2001
    Location
    San Jose
    Posts
    26
    well, A = FindWindow(vbNullString, App.Title) is also working and if i use PostMessage(A, WM_CLOSE, 0,0) then its close the application

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    well all vb programs have a hidden window with that caption. You close it and it kills the program.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5
    Megatron
    Guest
    App.Title returns the project name, whereas Me.Caption returns the title of individual Forms.

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