Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, friend, When I assign a StdPicture to a Picture box or an Image box, both work fine. So, I just wonder what are the differences between these two controls? Any ideas, reference papers? Thanks a lot.
Post Follow-up to this messageImage: - no hwnd or hdc for image manipulation - lightweight control - little resources used - stretch property - no drawing or printing ability (printing to the image contained therein) - no OLE drag/drop - can not act as a container control - no autosize Picture: - hwnd & hdc - heavy-weight control - autosize property - OLE drag/drop support - supports drawing and printing methods - ability to turn off caching of the image (autoredraw) Probably others as well. The hwnd/hdc and container aspects make the picture box a more versatile control, but bulky mem wise if loading many, especially large images. Image controls could be thought of like labels for pictures. And don't forget the picclip control -- no UI but handy in its own right. -- Randy Birch MS MVP Visual Basic http://vbnet.mvps.org/ ---------------------------------------------------------------------------- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ ---------------------------------------------------------------------------- "Andrew" <Andrew@discussions.microsoft.com> wrote in message news:40C9968F-2806-46FC-A6A9-4390CC7AB35F@microsoft.com... : Hello, friend, : : When I assign a StdPicture to a Picture box or an Image box, both work fine. : So, I just wonder what are the differences between these two controls? Any : ideas, reference papers? : : Thanks a lot.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.