Try something like this:

In the beginning of your program inside the class declaration:

Expand|Select|Wrap|Line Numbers

Declare Auto Function FindWindow Lib "USER32.DLL" (ByVal...