PC Review


Reply
Thread Tools Rate Thread

images with title in listview

 
 
raju
Guest
Posts: n/a
 
      29th Jun 2006
hai

In my application, i want to display images with title,(ie, image
bottom of that image title will come) like available in windows
explorer, I tried with largeimage and smallimage list but the title is
not coming, only the image only appearing.

How to achieve this? if it is possible give me the solution.

In image view, can we add subitems?

Thanks.

 
Reply With Quote
 
 
 
 
Daniel Moth
Guest
Posts: n/a
 
      30th Jun 2006
That should work. Can you show us the code?

Simply assign both Text and ImageIndex to the listviewitems...

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"raju" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hai
>
> In my application, i want to display images with title,(ie, image
> bottom of that image title will come) like available in windows
> explorer, I tried with largeimage and smallimage list but the title is
> not coming, only the image only appearing.
>
> How to achieve this? if it is possible give me the solution.
>
> In image view, can we add subitems?
>
> Thanks.
>



 
Reply With Quote
 
raju
Guest
Posts: n/a
 
      1st Jul 2006

hello Daniel Moth,

My code is,

For nRow = 0 To nJobs - 1
sJob = oDsJob.Tables(0).Rows(nRow).Item("JobCode")
nitem = New ListViewItem(sJob)
nitem.ImageIndex = 0
lstJob.Items.Add(nitem)
Next

Yes, its working. But the text is display near to that image. But
i need the text, below of that image ie., its like in a control panel
window.

If it is possible, pl. do the needful.

Thanks in advance.

 
Reply With Quote
 
Daniel Moth
Guest
Posts: n/a
 
      1st Jul 2006
Sounds like you have changed the View property of the listview to Details.
Try setting it back to LargeIcon

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"raju" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> hello Daniel Moth,
>
> My code is,
>
> For nRow = 0 To nJobs - 1
> sJob = oDsJob.Tables(0).Rows(nRow).Item("JobCode")
> nitem = New ListViewItem(sJob)
> nitem.ImageIndex = 0
> lstJob.Items.Add(nitem)
> Next
>
> Yes, its working. But the text is display near to that image. But
> i need the text, below of that image ie., its like in a control panel
> window.
>
> If it is possible, pl. do the needful.
>
> Thanks in advance.
>



 
Reply With Quote
 
raju
Guest
Posts: n/a
 
      4th Jul 2006

Daniel Moth wrote:
> Sounds like you have changed the View property of the listview to Details.
> Try setting it back to LargeIcon
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
> "raju" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > hello Daniel Moth,
> >
> > My code is,
> >
> > For nRow = 0 To nJobs - 1
> > sJob = oDsJob.Tables(0).Rows(nRow).Item("JobCode")
> > nitem = New ListViewItem(sJob)
> > nitem.ImageIndex = 0
> > lstJob.Items.Add(nitem)
> > Next
> >
> > Yes, its working. But the text is display near to that image. But
> > i need the text, below of that image ie., its like in a control panel
> > window.
> >
> > If it is possible, pl. do the needful.
> >
> > Thanks in advance.
> >



Hello Daniel Moth

Thanks....

I changed the view property to largeicon, then its appear
like, what i want.

But, my window size is only 240X295. So, In my list, only 3
items are displaying per row. Is it possible to reduce the space
between each item.

Thanks in advance.

Regards,
Raj.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
images with title in listview raju Microsoft Dot NET Compact Framework 0 29th Jun 2006 04:07 PM
Re: How do I add images in listview by using VB.NET? Dinesh Bajaj Microsoft Dot NET Compact Framework 0 14th Dec 2005 08:27 AM
ListView and images WAkthar Microsoft C# .NET 0 3rd Jun 2005 01:55 PM
Images in Listview =?Utf-8?B?VGhvcnN0ZW4gbW9lbGxlcg==?= Microsoft C# .NET 1 12th Jul 2004 11:08 AM
RE: ListView - images disappear after coming back from another form with a ListView Armin Sadeghi [MSFT] Microsoft Dot NET Compact Framework 0 6th Sep 2003 12:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:28 PM.