How to create bitmap of a window form.

M

Melisa

Hi,

How can i create bitmap of a window form with all its child controls
without showing this form?
1. I am trying to create bitmap image of a window form.
2. I am creating a new instance of Form at runtime.
3. Then adding several controls like Button, RadioButton,CheckBox etc
to it.
4. Now i want to create bitmap with all controls showing on it which
are added to this form.


I am trying it by Control.DrawToBitmap().But in this way i am not
getting the controls in that bitmap of the form which are added to
it.But when i am showing the form , all controls appears in the
bitmap.But i want such bitmap without showing form or being visible.


How can i make it possible? Kindly reply ASAP.
 
R

Rick B

Not really sure what you are trying to do, but you can press CTRL+PRINT
SCREEN to capture the active window (form), then paste it into MS Paint.
Paint can save items as a bitmap.
 
R

Rick B

Ooops. Make that ALT+PRINT SCREEN

--
Rick B



Rick B said:
Not really sure what you are trying to do, but you can press CTRL+PRINT
SCREEN to capture the active window (form), then paste it into MS Paint.
Paint can save items as a bitmap.
 

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