N
Newbie Coder
Hello Group
I am trying to find a window using the known classname, which I got through
Spy++
The classname is'AfxWnd80s' & when I use FindWindow API to return the INT32
with the window handle it returns 0 (zero)
Example:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA"
(ByVal lpClassName As String, ByVal lpWindowName As String) As Int32
Dim i As Int32 = FindWindow("AfxWnd80s", VbNullString)
MessageBox.Show(i.ToString)
This window displays maybe once a week so, I will have a long wait in which
to test it
Any Ideas?
TIA
Newbie Coder
I am trying to find a window using the known classname, which I got through
Spy++
The classname is'AfxWnd80s' & when I use FindWindow API to return the INT32
with the window handle it returns 0 (zero)
Example:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA"
(ByVal lpClassName As String, ByVal lpWindowName As String) As Int32
Dim i As Int32 = FindWindow("AfxWnd80s", VbNullString)
MessageBox.Show(i.ToString)
This window displays maybe once a week so, I will have a long wait in which
to test it
Any Ideas?
TIA
Newbie Coder