Here is a small code sample on how you can fake doing a BitBlt from an ImageBox
You could alternatively BitBlt from the ImageBox if you'd like.
The ImageBox is a lightweight control, so it does not have its owh hDc
But, its parent does, so we use that hDc instead.
There are many situations where this will not work, but there are also many where it will.
You could also use this same technique for doing a BitBlt from a java applet inside a WebBrowser control for example
The image file for use with this example can be obtained here.




Reply With Quote