473,394 Members | 1,802 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,394 software developers and data experts.

Photos in listview

Hey Group

I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?

/Anders
Nov 20 '05 #1
6 1646
Easily,

Draw them yourself.

How?

Well, in a listbox you would define the DrawItem Method. and set to Owner
drawn fixed or owner drawn variable in the properties window.

In there you would get the bound for each item in the e paramter
e.bounds and using e.graphics.drawimage you could draw it.

If you want each image of varying size then you will need to do MeasureItem
method and tell VB the size for each item and then in DrawItem draw it.

I think the Listview is similar---don't have VB.NET open now....

HTH,

Shane
"Anders Matthiessen" <we*@dioder.dk> wrote in message
news:40***********************@news.sunsite.dk...
Hey Group

I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?

/Anders

Nov 20 '05 #2
Hi,

This would give you an idea:
http://www.code101.com/Code101/Displ...cle.aspx?cid=2

"Anders Matthiessen" <we*@dioder.dk> wrote in message
news:40***********************@news.sunsite.dk...
Hey Group

I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?

/Anders
Nov 20 '05 #3
* Anders Matthiessen <we*@dioder.dk> scripsit:
I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?


Add the thumbnails to an imagelist and use a listview control.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #4
SStory wrote:
Easily,

Draw them yourself.


Superb :-)

Found http://redir.ek.dk/ListView (msdn) by your help

Tanks!

--
/Anders

Nov 20 '05 #5
Shiva wrote:
Hi,

This would give you an idea:
http://www.code101.com/Code101/Displ...cle.aspx?cid=2

Thought about that, but i dont think its flexible enough

/Anders
Nov 20 '05 #6
Your welcome.

Herfried also made a good suggestion.

Shane

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Easily,

Draw them yourself.

How?

Well, in a listbox you would define the DrawItem Method. and set to Owner
drawn fixed or owner drawn variable in the properties window.

In there you would get the bound for each item in the e paramter
e.bounds and using e.graphics.drawimage you could draw it.

If you want each image of varying size then you will need to do MeasureItem method and tell VB the size for each item and then in DrawItem draw it.

I think the Listview is similar---don't have VB.NET open now....

HTH,

Shane
"Anders Matthiessen" <we*@dioder.dk> wrote in message
news:40***********************@news.sunsite.dk...
Hey Group

I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?

/Anders


Nov 20 '05 #7

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

Similar topics

6
by: Anushya | last post by:
Hi I am using Listview and inherited listview control overriding WndProc & PreProcessMessage in ListView. I need this to customize listview to display only the page the user scrolls to. Since i...
0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
7
by: Dave Y | last post by:
I am a newbie to C# and am having trouble trying to override a ListView property method. I have created a new class derived from the Forms.Listview and I cannot figure out the syntax to override...
2
by: Ross | last post by:
Hi I have an application using asp.net that I am running on my PC. The web form has a text box where you can enter a name for a new Photo category then click on the button. The code is...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
4
by: Dave G | last post by:
Firstly, apologies as this is not strictly an Access problem. I have a Access 2003 database containing records about people, and each person has 2 photos associated with the record. The photos...
4
by: cheryl | last post by:
We are asked to create a website that can upload photos....Our website administrator must upload photos. His upoloaded photos must reflect on the users interface.. I dont know where and how to start...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
1
by: jojo41300000 | last post by:
Hi, I am writing an application which will display the photos on the web pages. The photos are stored in the seperate machine but in the same LAN. First, when the user visit the web...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.