What are the differences between the picture box and the image control?
Regards
samir
Printable View
What are the differences between the picture box and the image control?
Regards
samir
One major difference is that the Picture Box is a container, and can hold other control inside it, an image control can't.
An image control is transparent.
An image control can autonmatically resize it's self to fit the picture.
Why?
Picture Box is one of the few controls that can be put onto an MDI form. Also it is a container by itself, meaning you can put other controls onto a picturebox, just like you would on a frame or on a form.
.
PictureBox also has a .hDc property which means that you can BitBlt and StretclBlt to it.
It also uses up far more resources than an imagebox.
An image control is a lightweight control.
This means that it is not really a control in that it does not have a window of its own but rather is drawn by the container whenever that container is redrawn.
This means that an image control does not have a window handles so no API calls that rerquire a window handle can use it.
Moreover since it is drawn by the container it cannot be places in front of any child controls of that container and the .ZOrder is not relevant to it.
HTH,
Duncan
Found a gearbox yet ?Quote:
Originally posted by MerrionComputin
An image control is a lightweight control.
This means that it is not really a control in that it does not have a window of its own but rather is drawn by the container whenever that container is redrawn.
This means that an image control does not have a window handles so no API calls that rerquire a window handle can use it.
Moreover since it is drawn by the container it cannot be places in front of any child controls of that container and the .ZOrder is not relevant to it.
HTH,
Duncan
Ordered a magnificently expensive one from Rimmer Bros....also EventVB release G is in system test so be prepared fro even more gratuitous mentions of it when the release date swings around....Quote:
Found a gearbox yet?
This should probably get relegated to ChitChat?
Nah I'd give it another good 10 or 15 off-topic posts before that happens :)