English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

I am using Visual Basic 6.0 and want to know how to take a screenshot of the Desktop and then have it as the Form.Picture property.

2006-08-10 13:34:00 · 6 answers · asked by Yoi_55 7 in Computers & Internet Programming & Design

Oops, guess I didn't specify that I need to do this from WITHIN the program. :-)

2006-08-10 14:08:39 · update #1

Doh, guess it's still not quite clear lol. I want the program, at run-time, to take a screenshot of the desktop and load it as the Form.Picture property *automatically* (through coding). I just want to know how to write the code to take the screenshot and then load it into the Form.Picture property.

2006-08-10 14:51:29 · update #2

6 answers

#1 You can use this vb code to simulate the pressing of a certain key within the vb program:
http://www.thevbzone.com/modKeyboard.bas

#2 This is a free screen capture program (ScreenHunter):
http://www.wisdom-soft.com/products/screenhunter.htm
You can configure this program to screen capture when a certain key is pressed. More importantly, you can configure it to save this captured image to a physical location on your computer.

See where I'm going?

You have ScreenHunter running on your computer (it pretty much runs in the background and is barely noticeable, it'll just be an icon sitting in your tray). You configure ScreenHunter to screen capture and save the image to a location on your computer when a key (let's say F6) is pressed. In your vb code, use the code in #1 to simulate the pressing of the F6 key when the program loads. Put a time delay in your code to ensure that ScreenHunter had enough time to screen capture and save the image. Then set your Form.Picture property to point to the physical location where ScreenHunter saved the image.

2006-08-16 05:46:43 · answer #1 · answered by boredatwork 2 · 1 0

#a million Crescent Love! #2 Karin! #3 Kaleido celeb #4 fee Of Tennis #5 Aiteruze infant #6 The melancholy Of Haruhi Suzumiya #7 Nurse Witch Komugi #8 Pokemon #9 Kamichama Karin #10 Kyou Kara Maou I have not got any self assurance in those. idk what they are. cool and exciting activity however. my solutions embarrass me.

2016-12-11 06:38:48 · answer #2 · answered by woolf 4 · 0 0

hit the print scrn key and open paint program then ctrl+v

2006-08-11 01:54:09 · answer #3 · answered by K Ban 2 · 0 1

hit the print scrn key and open paint program then ctrl+v.

2006-08-10 13:49:55 · answer #4 · answered by teabagme 3 · 0 1

hit the key and open paint program then ctrl+v and save it. then open it

2006-08-16 02:01:56 · answer #5 · answered by Anonymous · 0 1

alt+printscreen on your keyboard. then open paint or word then paste it or hit Ctrl+v. it will let your capture only the form not the whole desktop

2006-08-10 14:44:44 · answer #6 · answered by kryptonboy22 3 · 0 1

fedest.com, questions and answers