ADO DOT NET
Well-known member
- Joined
- Dec 20, 2006
- Messages
- 156
Hi,
In vb6 I was using findwindow to see if theres a window with a specific caption.
but it wont work in .net 2005?
any other way?
thanks
In vb6 I was using findwindow to see if theres a window with a specific caption.
but it wont work in .net 2005?
any other way?
thanks
Code:
Dim hhwnd As Long
Dim retval As Long
hhwnd = FindWindow(vbNullString, "AnotherApp")
If hhwnd <> 0 Then
MsgBox "Another app is running."
End
End If