I want to simulate VB6 Autoredraw in VB.Net
I figure I would probably have to create a memory dc,
paint to that, and then create a bitmap based on the dc
and copy that image into a bitmap,
and then assign that to the image property of my control?
If so, then can someone push me in the right direction
to get started on this.
If not, then what would you suggest.
Thanks.
Doug.
That was the first thing I looked at, but I couldn't
figure out how to draw to the bitmap (the only
method I saw was for setting pixels).
So how do you draw to the bitmap?
Doug.
"Dennis" <Den...@discussions.microsoft.com> wrote in message
news:4CEAC020-1D11-4686...@microsoft.com...
I was able to figure out to create the graphics from the bitmap,
and was able to draw to it, etc.
Assigning the bitmap to the image property seems to work fine...
what advantages would there be to bitblt in the paint event?
Doug.
"Doug Marquardt" <no_...@dummy.com> wrote in message
news:%23IgjOtQ...@TK2MSFTNGP02.phx.gbl...
Pardon my ignorance here...
but I really don't see how bitblt in the paint event
could be quicker than assigning the bitmap
to the image -- the point being that once I assign
the image the control takes over all the painting, etc.???
Just curious...
Doug.
"Dennis" <Den...@discussions.microsoft.com> wrote in message
news:62E328B6-D10B-406B...@microsoft.com...
Not sure what you mean by "copied to the picturebox during each paint
event"...
as I only have to assign the bitmap to the control image property and forget
about it. Are you saying that internally, vb.net has to copy/render any
image
each time the paint event is fired?
In any case, what I am doing now works just fine and I do not notice
any performance issues whatsoever.
Thanks for getting me started on the right path with this.
Doug.
"Dennis" <Den...@discussions.microsoft.com> wrote in message
news:86A3BFD8-7C73-4BCF...@microsoft.com...