Hi
I'm using Visual basic.net 2005
I've got a little problem that i help with.
I've created some arrays:
Dim vehicleMake() As String = {"[Select]", "Ford", "Vauxhall"}
Dim vauxhallModel() As String = {"[Select]","Astra", "Corsa"}
Dim fordModel() As String = {"[Select]", "Feista", "Focus"}
added two Combo boxes: cmbVehicleMake & cmbVehicleModel
and added this code to the form
For make As Integer = 0 To 2
cmbVehicleMake.Items.Add(vehicleMake(make))
Next
cmbVehicleMake.SelectedIndex = 0
this puts th vehicleMake array in cmbVehicleMake box with [Select]
being the fist value.
I now want to put model
in to cmbVehicleModel
where its related to the make
.
Example
if I select 'Ford' then cmbVehicleModel will show Feista, Focus
if I select 'Vauxhall' then cmbVevicleModel will show Astra, Corsa
I then want to be able to select the Model type.
Can anyone help
Ian Wells