Post: Comboboxes & Lists
03-18-2015, 09:36 AM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hey everyone - I was wondering what is is the easiest way to make a few lists, then depending on the option selected in combobox1, it will populate combobox2.

What I have is 2 comboboxes - Make and Model. I know I can add stuff by typing

    comobobox1.Items.Add("Suzuki");


but doing that for every Make and model is gonna be a ballache. So I was wondering if someone knew of a way I can make some lists eg;-

-Make (Suzuki, Honda, etc)
-Suzuki Models
-Honda Models
-etc

so that I can select Suzuki (eg) in combobox1 and it will populate combobox2 with Suzuki Models
03-24-2015, 05:27 PM #29
jagex
Gym leader
You can use Substring and IndexOf to filter it out or trim the string
03-24-2015, 06:01 PM #30
seanhellen
Are you high?
I have just had a look at the substring and indexof and can't for the life of me figure out how I could implement them Happy

P.S. I am very new to coding in case you hadn't noticed lol Happy

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo