|
-
Jul 18th, 2005, 12:50 PM
#1
PictureBox V/s ImageBox
Hi all!!
can somebody plz explain difference btw the 2.
thnx
-
Jul 18th, 2005, 12:56 PM
#2
PowerPoster
Re: PictureBox V/s ImageBox
"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."
-
Jul 18th, 2005, 12:57 PM
#3
Re: PictureBox V/s ImageBox
Also the picture box has an hWnd property (handle) and the Image control does not.
-
Jul 18th, 2005, 12:58 PM
#4
Re: PictureBox V/s ImageBox
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
-
Jul 18th, 2005, 02:24 PM
#5
Re: PictureBox V/s ImageBox
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.
-
Jul 18th, 2005, 03:25 PM
#6
Re: PictureBox V/s ImageBox
You can also stretch an Image Control
-
Jul 18th, 2005, 04:34 PM
#7
Re: PictureBox V/s ImageBox
I just said that in post #5
-
Jul 18th, 2005, 07:15 PM
#8
Re: PictureBox V/s ImageBox
Oops. Thought you were saying that it didn't stretch.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|