listboxcontrol

  • Thread starter Thread starter sreekar
  • Start date Start date
S

sreekar

hi all i need the code for following example can any help me out.. thanx in advance



This is a database table which contains classes and goods columns:

Classes Goods

class1 tea,coffee

class2 fan,cooler

class3 telephone,mobile

class4 video,audio

class5 vcd,dvd,svcd



the front end part consist:


listbox: in this listbox all the above classes should display.the listbox is a multiselect listbox.


Button: the name is getgoods button:


Multilinetextbox: in this goods has to diplay.

The procedure is if select class1 and class3 in listbox and I will press the getgoods button then the regarding goods of these classes like tea,coffee and telephone,mobile
Should diplay in the multilinetextbox
 
sreekar,

If your table is small and not updatable, I'd consider loading all of
the goods into a dictionary and then add them to the list when they are
selected. Otherwise, you will have to get a list of classes, populate the
listbox, and then get the associated goods for the classes.

Hope this helps.
 
Back
Top