Image of controls

P

Peder Y

I need to create one image of several controls lying "on top of
eachoter" (Z-order) at runtime. Theese are a picturebox (lowest), with
a textbox, some labels and a richTextBox scattered around on top. What
is the best approach to this? Can handles be used somehow?

Thanks!

- Peder -
 
P

Peder Y

I want to do it programmatically. I'm making a list of preview images
depending on the change of the contents in the mentioned controls. My
best shot so far (though I haven't attempted it yet) is to take a
"screenshot" of the program window using a handle to it's window. Then
use GDI to crop the image down to the area I want.

Somehow this seems a little akward and is maybe an overkill. Hence I
want to hear other oppinions.

- Peder -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top