• Welcome to Valhalla Legends Archive.
 

[VB.Net] Adding Ping Icons

Started by FrOzeN, February 04, 2006, 06:45 AM

Previous topic - Next topic

FrOzeN

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.
~ FrOzeN

K

#1
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.

MyndFyre

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.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.