>I am involved into the project for conversion VFP application to VB.Net.
>
>In VFP the active window is printed by using PrintWindow API based on DibApi32 library.
>
>For Windows XP there is also the PrintWindow API function based on user32 library that looks promising.
>
>I tried both approaches, but without success. Could anybody provide the example that works? Thank you in advance
>
>Yuri Rubinov
I found this one
http://www.codeproject.com/vb/net/Screen_Shot.asp?df=100&forumid=433622&exp=0&select=2107873 but don't know if it comes with the source code. May be you can check if this can suit your needs?
IMO it looks like it comes without source code, but may be you can contact the author and get some ideas from him?
If it's not broken, fix it until it is.
My Blog