Home arrow Visual Basic arrow Page 5 - Magnifying The Desktop With Visual Basic

Magnifying The Desktop With Visual Basic

A very handy application that's included with the Windows operating system is the magnifier, which zooms in on a portion of the desktop. In this article Jason shows us how to create a cool zoomable magnifier using Visual Basic 6 and the Windows API.

Author Info:
By: Jason Brimblecombe
Rating: 4 stars4 stars4 stars4 stars4 stars / 54
February 21, 2002
  1. · Magnifying The Desktop With Visual Basic
  2. · Our magnifier app
  3. · Adding the code
  4. · Adding code to the timer
  5. · The magnifier in action
  6. · Conclusion

print this article

Magnifying The Desktop With Visual Basic - The magnifier in action
(Page 5 of 6 )

Run our magnifier application by pressing play in the Visual Basic IDE. Here are some screen shots that I took while running it:

A zoomed out version of the devArticles web site:

The magnifier at 0% zoom

A 50% zoom of the devArticles web site:

The magnifier 50% zoomed

A 100% zoom of the devArticles web site:

The magnifier 90% zoomed

As you can see from the screen shots shown above, our magnifying app does a great job of zooming in and out of a portion of the screen. By simply dragging the vertical scroll bar up and down, the zoom of our magnifier app changes dynamically... it's really quite amazing!

Just one note before you continue on to the conclusion page. If you're running an older computer (such as a 486 or Pentium II), try changing the interval of the timer to 75 or 100. This will cause the screen grabbing and magnifying to occur on at a greater interval, which should speed up the bit blitting process.
blog comments powered by Disqus

- Developing an XML Web Service Using Visual S...
- Creating an HTML File List with VB
- Fun with Email: VB6, CDO, MAPI, and a Remote...
- Extranet/Intranet Dictionary Cracker in VB
- Finding Default App Icons With Visual Basic
- Registry Fever With Visual Basic
- Implementing An ADO Data Control With VB6
- Printing With Visual Basic
- MSMQ Part 1/2: Architecture and Simple Imple...
- Magnifying The Desktop With Visual Basic
- Sending Email With MAPI Components in Visual...
- Two Person Chat With The Winsock Control And...
- A Real-Time ActiveX News Control
- Accessing the Windows API in Visual Basic

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials