Screen Capture

007bond
16 Sept 2004, 08:56
Anyone know any quick and concise (must be) code to capture the desktop as a picture and use it in VB6? Or do I have to go hunting as usual?

GameBoy
16 Sept 2004, 12:24
ew, i found a pube on my desk! :shock:

davidw
16 Sept 2004, 12:30
Can I be the first one to formally thank Ste for his inspired answer to 007 Bond's question.

Anonymous
16 Sept 2004, 12:32
Hi

There are several ways to do this, personally I'd use the Windows API 'bitblit' function & appropriate DC's to actually transfer the desktop to a picture control or image control. I use this basic approach with my self written slide presentation software where it offers a neat solution and is very quick too.

I found some very good code that does screen capture exactly this way - written by Randy Birch and generously allowing free use in other apps - but it is not permissable to post the code elsewhere on the web which of course posting it here would be doing.

e-mail me and I'll send you the code - I'm sure you could find other ways but this code definitely works nicely so why re-invent the wheel. ;-)

Al (MaDbRiT)

007bond
17 Sept 2004, 06:45
I'd love to email you, but what is your email address?

MaDbRiT
17 Sept 2004, 08:54
my e-mail address is in my profile...

Of course it helps if I sign in so that the profile is listed... :oops:

Al (MaDbRiT)

paul_one
18 Sept 2004, 08:22
Al... Randy Birch sounds so familiar..... What is he usually associated with?

Atari? Linux? ... Erm, I dunno what else I can think of...