Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2005, 05:21 PM
Registered User
 
Join Date: Jan 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hide controls/GUI components before screen capture

Hi,

I'm having a problem obtaining a clean screen capture of my form when I attempt to hide all unnecessary components before I capture a bitmap of the form. The problem is that as I hide the components, the form does a repaint, but before the repaint process is completed the bitmap is captured in between the repaint process. I only want to capture the components that I want to do a print screen. Here are the steps that I'm trying to do:

'Hide all components
components.visible = false
...

'Capture bitmap
GetImage(pnlDisplay)
...

'Print bitmap
PrintDocument.Print()

Any ideas on what steps I might take to achieve this?

Thanks,
Wai






Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Screen Capture sujeetji Pro PHP 2 December 1st, 2006 06:47 AM
Screen capture issue RNedel C# 3 September 22nd, 2006 01:51 PM
Capture Screen and Paste to Word Document SerranoG Access VBA 0 June 9th, 2005 03:49 PM
GUI Components Slater BOOK: Beginning Java 2 1 June 18th, 2004 12:09 PM
How to hide "Enter Parameter Value" screen crsytal salmaan Crystal Reports 2 April 21st, 2004 11:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.