what is this called?

Geoffrey
08-16-2005, 05:00 PM
Hello, I'm planning to make a program but I need a list like in iTunes showing the artist/song/album/etc..
example picture :
Example (http://img260.imageshack.us/my.php?image=whatsthis5xd.png)

can anyone tell what the name of this control is and how to draw it on a form?

thanks in advance ;)

Geoffrey

italkid
08-16-2005, 05:05 PM
Hi Geoffrey, and welcome :cool:

Looks like a listbox to me (set Style to "Checkbox") :)

Geoffrey
08-16-2005, 05:11 PM
That's not what I meant ;)

I am talking about the whole box :
|Name|Time|Artist|

allowing the user to add things to the list and being able to sort it by clicking on Artist for example.
I can't explain myself that good because my english isn't very good and I'm only a beginner in Visual Basic, sorry .. :)

please help
thanks anyway ;)

BugaBog
08-16-2005, 07:22 PM
You can us a MSFlexGrid I believe, let me go check.

BugaBog
08-16-2005, 07:30 PM
Ok its called a ListView

You put it on.
First hit CTRL + T then Select Microsoft Common Controls, one of those has them(There may be a few)

Then draw a Listview on

Then in your form load you put something like

ListView1.ColumnHeaders.Add(,,"Name")
ListView1.ColumnHeaders.Add(,,"Time")
ListView1.ColumnHeaders.Add(,,"Artist")

TeraBlight
08-16-2005, 10:45 PM
You might want to take a look at the
MP3 Player Tutorial
It uses a ListView in exactly this manner :)

Geoffrey
08-17-2005, 04:22 AM
Thanks all!
exactly what I needed :)
the mp3-player tutorial is very helpful, I'll do that one first.

edit : I have a new question now, it's not so important but how can I make it so that when I click the column headers, the songs sort alphabeticly?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum