Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 25th, 2005, 8:38 AM   #1
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Question Picture Box and Image box?

What's the exact difference between Picture Box and Image box?
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Oct 25th, 2005, 9:57 AM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
A picture box is an actual class from the point of view of the Win32 API, assigned a device context, handle and compatible device independent bitmap, and is thus suitable for bitblitting, swizzling and other raster operations, including those involving the windows API. An image box is not actually anything in terms of windows, being simply a convenient way of causing VB to paint the image as part of the form (as if you added equivalent code to the Form_Paint() event), and paints using the form brush as opposed to an independently manipulatable graphics object.

Thus a picture box is primarily for when you wish to manipulate an image, whereas an image box simply displays it, and uses less resources. A picture box also paints independently of the window, supporting double buffering, so appears "faster". As it is assigned a handle, it can also be a containing window, both of other controls like a frame in the form designer, and also other top level windows like an MDI form, using the SetParent API. Hope this helps
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:13 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC