My apologies guys, I\'m trying to learn vb.net as I go (I was semi-literate in VB6) what with all its nuances and all. \r\n \r\nOk, here\'s what I want to do and where I\'ve come into a bit of confusion about listboxes. \r\n \r\nOk, I have a set of players in an array called Player(x,y) - x being the players ID, y being a set attribute of the player - in this case element 1 being the last name. \r\n \r\nI wish to set up a listbox on launch will populate any given number of Players, that will allow the user to pick a player using the listbox - by name, rather than by ID# - and have it show the selected players stats. \r\n \r\nMy issue is the population and retrieving. \r\n \r\nYes, I am aware of how to attach individual items to a listbox (listbox.items.add), but is there anyway to populate the listbox items with an additional value? \r\n \r\nE.g Player(1,1) Might be ID#1 and the name might be Reynolds - is it possible for an item to be added as \'Reynolds\' with a value of 1? \r\n \r\nThanks in advance?
My apologies guys, I'm trying to learn vb.net as I go (I was semi-literate in VB6) what with all its nuances and all.
Ok, here's what I want to do and where I've come into a bit of confusion about listboxes.
Ok, I have a set of players in an array called Player(x,y) - x being the players ID, y being a set attribute of the player - in this case element 1 being the last name.
I wish to set up a listbox on launch will populate any given number of Players, that will allow the user to pick a player using the listbox - by name, rather than by ID# - and have it show the selected players stats.
My issue is the population and retrieving.
Yes, I am aware of how to attach individual items to a listbox (listbox.items.add), but is there anyway to populate the listbox items with an additional value?
E.g Player(1,1) Might be ID#1 and the name might be Reynolds - is it possible for an item to be added as 'Reynolds' with a value of 1?
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe