Making a ("screenshot") image of a single control

  • Thread starter Thread starter sandman
  • Start date Start date
S

sandman

Is this a one-time deal? Or something you want to do
programmatically? If it's a one-time thing (e.g. to
create a bitmap that you can then use in your program),
just press Print-Screen, then load Microsoft PaintBrush
and paste. Then you can select/cut/paste what you want and
create little control bitmaps. If it's something you want
to do in code, sorry, can't help.
 
:-)
read below... i wrote almost in the end of my question that
i want to do it programmatically
in fact i want to point on a control of my choice and then an image of it
will be created....
 
If you have access to the source code of the child controls, you could
change their OnPaint handlers to call a publicly available method (e.g.
DrawContents).
Then, you could call DrawContents yourself and supply it with a Graphics
object based on a bitmap you created.

Just a thought

Oscar.
 
Back
Top