Hello - I've used GetForegroundWindow() in the past on a PocketPC2000 OS
device, in an eVB application. I'm desperately trying to figure out how to
accomplish the same thing on a Windows Mobile 3.0 OS device, in a VB.NET
application. Below is my code from the eVB app.
TIA,
Alan G.
-------------------------------
Public Declare Function GetForegroundWindow Lib "Coredll" () As Long
Private Sub tmrForegroundCheck_Timer()
msCurWindow = CStr(GetForegroundWindow()) ' The current foreground
window
If msMyWindow = msCurWindow Then
' If our window is in the foreground then...
Else
' ...
End If
End Sub