i'm not sure that you can draw all controls to a bitmap... it would be
interesting though
So, if you have a lot of controls that are flickering when being refreshed
then you might have a problem.
For a simple application i had just ONE Label that needs to be flickerfree.
I have decided to forget the Label and made it with a bitmap. I draw the
text to that bitmap (offscreen) and then paint the bitmap into a picturebox
(that simulates my label)
that works and of course if i need that more often i would make a little
control of it.
But when you need edit-controls, listboxes etc. then it would be a hard job
to do all the drawings by yourself
Boris
On Mon, 23 Feb 2004 21:14:11 -0700, Joshua Moore wrote:
> What is the best way to take an image of the panel (and all the objects
> inside)? I know I can use Graphics.DrawImage to "paste it".
>
> Thanks,
>
> "Elisa" <(E-Mail Removed)> wrote in message
> news:fQYZb.272$(E-Mail Removed)...
>> Hi Joshua,
>>
>>> I have two issues before we release. First, the big one. Double
> Buffering,
>>> part of .NET Framework is not in .netCF.
>>
>> Mmm, double buffering is a technique where you perform all your drawing
>> techniques on an offscreen bitmap, then, when all the drawing operations
>> are done, copy the bitmap in its entirety to the screen. If I'm not
>> mistaken, the PictureButton example on the www.gotdotnet.com .NET CF
>> Quickstart section uses this technique, so have a look there.
>>
>> Also, in order to prevent flickering, try overriding the
>> OnPaintBackground method with a completely empty method. Completely
>> empty means also NOT calling the OnPaintBackground method of the
> superclass.
>>
>>
>> Regards,
>>
>> Elisa