Results 1 to 2 of 2

Thread: Screen Shots

  1. #1

    Thread Starter
    New Member
    Join Date
    May 1999
    Location
    England
    Posts
    12

    Post

    Does Anyone know the coe to take a screen shot in vb

    thanks alot
    tom

    [email protected]

  2. #2

    Post

    Sure. (Don't have full source-code but an idea)

    When copying parts of a picture you use the API BitBlt. BitBlt exspects an hDC as a parameter. So you need the hDC of the Desktop. That could be done by hDC = GetDC(GetDesktopWindow).
    BitBlt(Picture1.hDC, 0, 0, Screen.Width / TPX, Screen.Height / TPY, hDC, 0,0, SRCCOPY)

    Hope that helps

    Björn


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