|
-
Mar 4th, 2002, 05:55 AM
#1
Thread Starter
Addicted Member
Picture box v/s image control
What are the differences between the picture box and the image control?
Regards
samir
-
Mar 4th, 2002, 06:01 AM
#2
Muppets are attacking the molehills...STOP THEM!
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?
-
Mar 4th, 2002, 06:04 AM
#3
Well ...
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.
.
-
Mar 4th, 2002, 06:15 AM
#4
Retired VBF Adm1nistrator
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.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 4th, 2002, 07:12 AM
#5
Frenzied Member
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
-
Mar 4th, 2002, 07:14 AM
#6
Retired VBF Adm1nistrator
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
Found a gearbox yet ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Mar 4th, 2002, 08:43 AM
#7
Frenzied Member
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....
This should probably get relegated to ChitChat?
-
Mar 4th, 2002, 08:44 AM
#8
Retired VBF Adm1nistrator
Nah I'd give it another good 10 or 15 off-topic posts before that happens
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
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
|