HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
Go Back  Xtreme Visual Basic Talk > > > HOW TO: Call Window's printscreen function


Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-15-2003, 08:34 PM
bfortier2 bfortier2 is offline
Newcomer
 
Join Date: Jul 2003
Posts: 4
Question HOW TO: Call Window's printscreen function


Hi

I would like to call the Windows PrintScreen function like if I pressed the PrintScreen key. After I extract the picture from the clipboard.

Here is the code. For now I have to press PrintScreen manually...

(working with VB.NET)

*********************
Function TakeSnapShot()
Dim Clipboard As Clipboard
Dim Image As Image
Dim iData As IDataObject = Clipboard.GetDataObject()

'Here I press on PrintScreen

'Extracts bitmap from clipboard
If iData.GetDataPresent(DataFormats.Bitmap) Then
Image = System.Windows.Forms.Clipboard.GetDataObject.GetData(System.Windows.Fo rms.DataFormats.Bitmap)
Return Image
End If
End Function
Function Save(ByVal Image As Image) As Boolean
Image.Save("c:\test.bmp")
Return (True)
End Function

Tanks
  #2  
Old 09-15-2003, 09:02 PM
00100b's Avatar
00100bHOW TO: Call Window's printscreen function 00100b is offline
Martian In Disguise

Retired Moderator
* Guru *
 
Join Date: May 2003
Location: Minneapolis, MN
Posts: 9,566
Default

How about
Code:
SendKeys "{PRTSC}"
__________________
The only stupid question is the one that goes un-asked.
  #3  
Old 09-15-2003, 09:43 PM
ThinkerHOW TO: Call Window's printscreen function Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default

[ednf]...[/ednf]
__________________
Posting Guidelines
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting Outlook Contacts to Access worchyld Word, PowerPoint, Outlook, and Other Office Products 6 08-29-2003 09:38 AM
Algorithm Problems Arkasizer Game Programming 5 12-18-2002 07:37 AM
Loading a Sprite Termor Game Programming 14 12-07-2002 07:37 AM
MS Winsocket gibson General 3 07-20-2001 10:03 AM
Saving as Random Access File VillageBaboon General 5 06-14-2001 10:25 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
 
HOW TO: Call Window's printscreen function
HOW TO: Call Window's printscreen function
 
-->