Question[Help]ComboBox Selections[Solved]

Posts 1–6 of 6 · Page 1 of 1
[Help]ComboBox Selections[Solved]
ComboBox1
Code:
M16A4
AK47
M4 Carbine
G3
G36C
M14
MP44
ComboBox2
Code:
ACOG Scope
Red Dot Sight
Silencer
Grip
Rifle Gernades
Ok this is what I am trying to make. If AK47 is selected in combox1 then:

Code:
ComboBox1= AK47
Code:
Combox2 = ACOG Scope
Red Dot Sight
Silencer
Grip
so everything except the rifle gernades.
How do this?

Is it like:
Code:
If ComboBox1.Text = "AK47" Then
ComboBox2.Items = "ACOG Scope,Red Dot Sight,Silencer,Grip"
If so how would i do it?
In the Combo Box Item Change event (there is one, double click the combo box)

[php]
If comx1.selecteditem (' or is it selected") = "what you want to check it against here" Then
Comx2.selecteditem = "this that and the other thing
end if
[/php]
i dont think i explained it correctly.
so when i select AK47.

I want the items in ComboBox2 to be:
ACOG Scope
Red Dot Sight
Silencer
Grip
'since a rifle grenade cannot be attached to an AK47.

so how do i remove rifle grenade from the from the comx list?
To add an item it is

[php]
Comx1.items.add("Item To Add")
[/php]

To Remove an Item it is

[php]
Comx1.items.remove("Item To Remove")
[/php]
How do you remove all items from the combolist?
Code:
ComboBox1.Items.Clear()
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us