10-07-2009, 12:42 PM
I am very new to .Net programming. I have created a keylogger (for my own use) that simply logs the keys. No builder or anything. Before I create a builder, I would like to add features. The first feature I'm trying to add is to get the window title, name or whatever.
In a source I have found,this is the beginning of the code for the timer:
This was taken from a source that was originally written in VB6 but redone for .Net.
I get the blue squiggly under "GetForegroundWindow" and it does not declare. Can anyone help me?
In a source I have found,this is the beginning of the code for the timer:
Code:
Dim fg_hwnd As Long = GetForegroundWindow
This was taken from a source that was originally written in VB6 but redone for .Net.
I get the blue squiggly under "GetForegroundWindow" and it does not declare. Can anyone help me?