
06-30-2012, 12:41 AM
|
 |
Bald Mountain Survivor
Super Moderator * Expert *
|
|
Join Date: Aug 2003
Location: Oregon, USA
Posts: 5,882
|
|
What you are looking for is not selecteditem (The content), but selectedindex (The Item Offset number from zero). To return a number from 1 you will have to add 1.
Code:
Private Sub cboRace_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboRace.SelectedIndexChanged
RaceNum = cboRace.SelectedIndex + 1 '<-- index Not Item
Race = CurDir() + "/Plugins/Races/Race"
Race = Race + RaceNum
Race = Race + ".phg"
Dim Reader As New System.IO.StreamReader(Race)
...
|
__________________
Burn the land and boil the sea
You can't take the sky from me
~T
|