Question

I'm currently doing a project in Visual express 2013,in VB,and my project is about lfight reservation and schedule.I'm fine with other parts of my coding but when it comes to the origin and destination,I just cannot seem to find an answer.I used two combo boxes,both have the same items in it

eg:
(
Penang(PEN)
Phuket(PHU)
Batam(btm)
koh Samui(USM)
)

but I cannot set the destination combobox to only show certain destination when I pick a certain origin.I've searched the Internet,and I could not understand when people say about database,SQL,etc..I really appreciate any help given,or critics

Was it helpful?

Solution

From your question and what you've tried, it's difficult to be certain whether you're talking about determining what items are included in the list, or determining what item is selected without changing the list. I think you mean the former, in which case you need to first clear the list (Items.Clear), and then add the items you want (Items.Add).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top