Valhalla Legends Archive

Programming => General Programming => .NET Platform => Topic started by: FrOzeN on February 04, 2006, 06:45 AM

Title: [VB.Net] Adding Ping Icons
Post by: FrOzeN on February 04, 2006, 06:45 AM
Ok, I've only been doing Visual Basic .NET since yesterday. I've added a ListView and set it up to add normal Product Icons for the game. It seems that SubItems only have a Text property.

I've google around and always seem to end up with the same answer that it's not possible unless you draw your own listview which I have no idea how to do at this stage.

Anyone know of a tweak or workaround to allow this. I only need to add the UDP Plug icon as being a Chat Bot it doesn't parse user's ping to you, only there flags.

All I've ever heard about .NET is propaganda about how good it is and after using it for 2 days it turns out it's deprecated one of the most rudimentary features. :-\

Thanks..

On a side note, the only reason I'm messing around with VB .Net is because it seems our programming coarse at school is ditching VB6 and moving to VB .Net in about 6 months, so I'm getting alittle head start now.
Title: Re: [VB.Net] Adding Ping Icons
Post by: K on February 04, 2006, 01:24 PM
I believe it's entirely possible, but I haven't looked at it in a while...

I think you want to create a ListViewItem, and then add a ListViewSubItem with the appropriate ImageListIndex and add it to your item.


edit: spelling.
Title: Re: [VB.Net] Adding Ping Icons
Post by: MyndFyre on February 04, 2006, 08:27 PM
I believe the ListViewSubItem class has an ImageIndex property.  You have to set this according to the ImageList that you set the ListView to own.

Alternatively you could custom-draw a ListBox, which I've found is much more flexible.