Visual Basic
  Home arrow Visual Basic arrow Page 2 - Magnifying The Desktop With Visual Basic
Iron Speed
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
VISUAL BASIC

Magnifying The Desktop With Visual Basic
By: Jason Brimblecombe
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 41
    2002-02-21

    Table of Contents:
  • Magnifying The Desktop With Visual Basic
  • Our magnifier app
  • Adding the code
  • Adding code to the timer
  • The magnifier in action
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Magnifying The Desktop With Visual Basic - Our magnifier app
    (Page 2 of 6 )

    Start by loading Visual Basic 6 and create a standard executable application. We will be using a status bar control on our form, so use the Projects -> Components menu to add a reference to the windows common controls version 5 or 6, like this:

    Referencing the common controls

    Set your forms caption to "Desktop Magnifier", change the ScaleMode property to "3 – Pixel", and resize your form to 6990 wide by 4410 units high. Add a timer control, a vertical scroll bar, and a status bar to your form. It should look like this:

    Our form with all controls added

    The details of each of the three controls on our form are shown below:
    • Timer: Will contain the code to grab the contents of a section of the desktop and magnify it accordingly. Set its interval property to 50.
    • Vertical Scroll Bar: Will be used to set the zoom of the magnifier. The lower the value, the deeper the zoom. Set its Min property to 1, its Max property to 100, and its Value property to 50.
    • Status Bar: Will display the x and y co-ordinates of the mouse as it moves around the desktop.
    Now that we've setup our form, let's add the Window API declarations and code to actually perform the magnification of the desktop.

    More Visual Basic Articles
    More By Jason Brimblecombe


     

    VISUAL BASIC ARTICLES

    - 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






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway