CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Print Screen

  1. #1
    Guest

    Print Screen

    I need a utility to print the screen. Very basic, no User interface. Just a simple control or file. The user needs to print the current VB form at runtime. Does anyone know how I can accomplish this.


  2. #2
    Join Date
    Jan 2000
    Posts
    11

    Re: Print Screen

    Just press the print screen button whenever you want, and then open the Paint application (under Programs/Accesories) and select Paste from the Edit menu. You will get the user interface into Paint and then select Print from the File menu. This is it.


  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Print Screen

    There's an excellent example here : http://codeguru.developer.com/vb/articles/1998.shtml - this is a module that you can use in your program to capture any form or the whole desktop into a standard VB Picture object - this can then be saved / printed in the normal way.


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  4. #4
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    238

    Re: Print Screen

    Hi !

    the simplest way to achieve this I know is this:

    form.PrintForm

    Thats it !! No fuzz.
    If there are graphics on your form be sure to set AutoRedraw to True.

    regards,

    Matthias.





    I had a thought,
    You know, I thought it a lot,
    I thought I was smart,
    Now I know that I'm not

    - The Presidents Of The United States Of America

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured