Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

What are the differences between Picture control and Image control
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew
12-13-05 02:55 AM


Re: What are the differences between Picture control and Image control
Image:
- 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.


Report this thread to moderator Post Follow-up to this message
Old Post
Randy Birch
12-13-05 02:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:59 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.