Re: How to create bitmap of a window form.
- From: "Mike D Sutton" <EDais@xxxxxxxx>
- Date: Tue, 1 Aug 2006 23:59:27 +0100
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. And it`s visibility is set to be false.
4. Then adding several controls like Button, RadioButton,CheckBox etc
to it.
5. 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.
Http://EDais.mvps.org/DotNet/
In VB, we'd probably send the WM_PRINT/PAINT messages to the window, however there may well be different approaches
under .NET.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/
.
- References:
- How to create bitmap of a window form.
- From: Melisa
- How to create bitmap of a window form.
- Prev by Date: How to create bitmap of a window form.
- Next by Date: How can I change alpha value of fore color of button control.
- Previous by thread: How to create bitmap of a window form.
- Next by thread: How can I change alpha value of fore color of button control.
- Index(es):