Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Taking Snapshot of any form of project at run time...

Taking Snapshot of any form of project at run time...

Scheduled Pinned Locked Moved Visual Basic
databasehelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sasmi
    wrote on last edited by
    #1

    :confused:Hi guys, I want to take snapshot of form at runtime without manually pressing the 'Prt Scr' key is it possible if yes can any one guide me how. i want to stored the snap shot of the form in my database. Please help me thanks in advance. Sasmi

    I 1 Reply Last reply
    0
    • S Sasmi

      :confused:Hi guys, I want to take snapshot of form at runtime without manually pressing the 'Prt Scr' key is it possible if yes can any one guide me how. i want to stored the snap shot of the form in my database. Please help me thanks in advance. Sasmi

      I Offline
      I Offline
      il_masacratore
      wrote on last edited by
      #2

      You have to create a Bitmap with form's size. Then, create a new Graphics from the Bitmap, and then call the "CopyFromScreen" method of the Graphics object. Here you have c# sample code... You only have to translate to vs basic. Bitmap oCaptura = new Bitmap(this.Width, this.Height); Graphics oGfx = Graphics.FromImage((Image)oCaptura); oGfx.CopyFromScreen(...)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups