Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / February 2008



Tip: Looking for answers? Try searching our database.

Desktop Capture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ivar - 29 Feb 2008 13:47 GMT
Hi all.

I have a form, no border, not maximized. The form can appear anywhere on the
screen. In form load, the position and size the form needs to be is
calculated and set, then using Bitblt an image of the screen is put on the
form so that if nothing else is on or drawn on to the form then it would
appear invisible.
All works well, except on multiple monitor systems, if none of the form is
within the primary monitor then nothing of the desktop gets drawn on to the
form, if some of it is within the primary monitor then just the bit in the
primary monitor is drawn.
What I need is the Hdc for the entire desk top or the Hdc of any secondry
monitors and draw each part of the desk top to the form using 2 or more
BitBlt's.
Any pointers please on the best way to do this?

Thanks

Ivar
Ivar - 29 Feb 2008 16:18 GMT
No worries, sussed it.
Thanks for reading

Ivar
Ken Halter - 29 Feb 2008 16:20 GMT
> Hi all.
>
> What I need is the Hdc for the entire desk top or the Hdc of any secondry
> monitors and draw each part of the desk top to the form using 2 or more
> BitBlt's.
> Any pointers please on the best way to do this?

This may help...

Working with Multiple Monitors
http://www.vbaccelerator.com/home/VB/Tips/Working_with_Multiple_Monitors/article.asp

...if not, there are samples on PlanetSourceCode.com...

fwiw, I had the opposite problem (for a while), using code similar to....

Capture and Print the Screen, a Form, or any Window
http://www.thescarms.com/VBasic/capture.aspx

...which is based on a KB article with (almost) the same name... it was
capturing the entire desktop, even if it was 3 monitors wide <g>

Signature

Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.