If you need some examples of Win32 interop, GDI+, Background threading, Emulating mouse clicks in another window, and the structure of Windows handles in a .NET winforms application, please visit [link=http://www.lightningbreakrobot.griddler.co.uk/]Lightning
Break Robot[/link]. At www.lightningbreakrobot.griddler.co.uk you can download the source code for a .NET winforms application which plays an online flash snooker game by itself. The code needs some refactoring but solves some tricky problems. I hope you find this useful in your programming.