|
-
Apr 12th, 2001, 07:46 PM
#1
Thread Starter
Junior Member
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?
-
Apr 12th, 2001, 08:02 PM
#2
Good Ol' Platypus
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)
-
Apr 12th, 2001, 08:08 PM
#3
Thread Starter
Junior Member
well, A = FindWindow(vbNullString, App.Title) is also working and if i use PostMessage(A, WM_CLOSE, 0,0) then its close the application
-
Apr 13th, 2001, 03:41 AM
#4
well all vb programs have a hidden window with that caption. You close it and it kills the program.
-
Apr 13th, 2001, 09:37 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|