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?
Printable View
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?
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
well, A = FindWindow(vbNullString, App.Title) is also working and if i use PostMessage(A, WM_CLOSE, 0,0) then its close the application:confused:
well all vb programs have a hidden window with that caption. You close it and it kills the program.
App.Title returns the project name, whereas Me.Caption returns the title of individual Forms.