Image of controls

  • Thread starter Thread starter Peder Y
  • Start date Start date
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 -
 
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 -
 
Back
Top