Re: Control.DrawToBitmap and Restrictions
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Wed, 14 Dec 2005 19:36:06 +0100
<powella@xxxxxxxxx> schrieb:
I've recently discovered the DrawToBitmap method hidden away in the Control class (in .NET 2.0). What a fantastic addition to the class.
I am curious what doesn't work...
\\\
Private Function CreateScreenshot( _
ByVal Control As Control _
) As Bitmap
Dim Screenshot As New Bitmap(Control.Width, Control.Height)
Control.DrawToBitmap( _
Screenshot, _
New Rectangle(0, 0, Control.Width, Control.Height) _
)
Return Screenshot
End Function
///-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> .
- Follow-Ups:
- Re: Control.DrawToBitmap and Restrictions
- From: powella
- Re: Control.DrawToBitmap and Restrictions
- References:
- Control.DrawToBitmap and Restrictions
- From: powella
- Control.DrawToBitmap and Restrictions
- Prev by Date: Re: disposing of an object
- Next by Date: Re: How to rebuild SQL connection
- Previous by thread: Control.DrawToBitmap and Restrictions
- Next by thread: Re: Control.DrawToBitmap and Restrictions
- Index(es):
Relevant Pages
|