By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Photos in listview

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
* 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

P: n/a
SStory wrote:
Easily,

Draw them yourself.


Superb :-)

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

Tanks!

--
/Anders

Nov 20 '05 #5

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.