473,414 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

how to put images in listbox

hello
i want to put bitmap file which is midium size (on disk it is full
size) in to some control which display it like thumbnail type any idea about
it.
--
With regards,

Gangani Kanaiya.
Nov 15 '05 #1
2 2509
Hi Gangani,

Wouldn't the Windows.Forms.PictureBox control do this for you ?
Assign the image to the PictureBox's Image property.
Ensure that the size of the picture box equals the size of the
thumbnail that you desire.
Set the SizeMode property to StretchImage enum.
That should shrink the image to fit the size of the PictureBox.

pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;

Regards,
Aravind C
"Kanaiya" <ka*************@hotmail.com> wrote in message
news:el**************@TK2MSFTNGP09.phx.gbl...
hello
i want to put bitmap file which is midium size (on disk it is full size) in to some control which display it like thumbnail type any idea about it.
--
With regards,

Gangani Kanaiya.

Nov 15 '05 #2
What you want is to have an owner drawn listbox.

You need to set the DrawMode to DrawMode.OwnerDrawVariable enum, and also
wireup the listbox' DrawItemEventHandler and MeasureItemEventHandler.

There's various examples - just perform a search on Google for some of the
terms I just described and you should get a few hits.

Hope that helps,
Wim Hollebrandse
http://www.wimdows.net
http://www.wimdows.com

"Kanaiya" <ka*************@hotmail.com> wrote in message
news:el**************@TK2MSFTNGP09.phx.gbl...
hello
i want to put bitmap file which is midium size (on disk it is full size) in to some control which display it like thumbnail type any idea about it.
--
With regards,

Gangani Kanaiya.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Vinay | last post by:
Hi All: I have a small application that stores images either in the database or as files (depending on the user preference). I'm in the process of providing a web interface to this application....
5
by: Axel | last post by:
An Access 2000 question Hi is is possible to have (as a subform) a continous form with 0..n buttons which have different images in each row. (Personally I would have preferred a button...
2
by: Kanaiya | last post by:
hello how to put images in either listbox or listview.bye. -- With regards, Gangani Kanaiya.
2
by: Mark Roberts | last post by:
Greetings: Is it possible to put a small image into a ListView item when the target item is NOT the item 0 (ie: its not the item on the left-most column). What I am trying to accomplish is to...
4
by: Michael Groeger | last post by:
Hi, is it possible to add an image to a item in a ListBox? I a searched all around but couldn't find an answer for that? Regards, Michael
4
by: goRide | last post by:
Hi, you all surely came along one of the new image managers like picasa or adobe photo elements. im tring to build something very simple and learn some new techniques from this applications....
14
by: Ima Loozer | last post by:
OK folks I'll try to explain my objective as clearly as I can... Might be hard... I want a list box on one of my forms. List box will have the persons name in column 0. Next three columns...
4
by: Bart Steur | last post by:
Hi, I'm writing an app to maintain products. The products are listed in a listbox and when I click a product in a listbox some info of that product is shown including a picture of the product. ...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.