Hi all!!
can somebody plz explain difference btw the 2.
thnx
Printable View
Hi all!!
can somebody plz explain difference btw the 2.
thnx
"The image control uses fewer system resources and repaints faster than a picture box control, but it supports only a subset of the picture box properties, events, and methods."
Also the picture box has an hWnd property (handle) and the Image control does not.
Picture box is a heavy control while Image control is a light control.
Picture boxes can contain almost anything. They can act as containers and also draw/print anything in it, besides holdong images(pictures). The Image control on the other hand is specifically meant for holding images. They can't act as containers.
So If you just want to hold images, consider the image control. If you want to draw something in it or hold other controls, consider the picturebox control.
Pradeep :)
A Picturebox is pretty much a window within a window. It can hold controls, like a window. It can be drawn on like a window. It has its hWnd and hDC handles for graphics.
An Imagebox on the other hand is limited and not like a Picturebox at all. All it can do is have an image loaded, and has stretching capabilities. It cannot be drawn on, hold controls, or anything.
You can also stretch an Image Control
I just said that in post #5 ;)
Oops. Thought you were saying that it didn't stretch. :blush: