Well if you are making a keylogger you will need to install a system hook that will monitor all keystrokes (even when the app doesn't have the focus) and unlike VB it will rwally work here. Then when the program is unloaded just save the text in a file (i'm sure you know how to do that). Here is an sample project that uses a system hook (dll & exe projects).