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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paint a whole panel

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
i would like to add vaious things to a panel - a picture, some text, one or two other things. then save an image of that panel to disk. i'm currebtly doing this by using the paint event, then capturing the panel's Graphics object as a Bitmap and saving it.

this works fine for the part of the panel that is on the screen, but nothing else is drawn.

does anyone know a way around this? is there a way to force the panel to be painted off the edge of the screen?
 
Are you allowing 'AutoScroll' against the panel ?
When you take a snapshot of the graphic(s) on the panel it may only be copying that portion of the panel that is on display ?
Steve
 
that's exactly what it's doing steve, but i don't want it to. i stumbled across a way of getting round it when doing something else though, so it's okay now. i just needed to create a graphics object that wasn't to be displayed, and so would be fully drawn. if you go to the 'string on a bitmap' thread, there is a routine that can be modded for this situation. thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top