Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture current form as an Image in VB6

Status
Not open for further replies.

Giraffe69

Programmer
Oct 7, 2003
22
GB
This must be really easy to do(!) but I just cant get it to work!!

I want to grab the current active visible form (a regular VB form I've created), controls and all, as an image so I can shove it in a picture box an another form.

I've found lots of code for grabbing the entire desktop, but I dont want it all and I'm getting tangled in knots trying to select only my form's part of the desktop. So I figure there must be a way to grab only the current form?

I've tried using "StretchBlt" but cant get the parameters right!

Any help would be really appreciated!!!
 
This forum has illustrated several techniques for this.

The two easiest are probably exemplified by my code most recently posted in thread222-1176867 and Hypetia's code in thread222-912111
 
thanks Strongm, that works a treat!

"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Robert Wilensky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top