How to do this (listbox control)



I am trying to do the following in VB6 for a demo program :

1. I want to display 2 columns in a list box (e.g. 'key', 'description'), so I can display the contents of a std::map (or in VB parlance - a 'dictionary')


2. I want to use a users selection in one combobox, to 'filter' the available selections in another combo box. The 'obvious' way of doing this (storing the entire unfiltered data in some variable/class and then filtering and re-populating the second list, based on selection in first list), seems a bit 'clunky', and I am not yet familiar with VB's classes to know how to improve on this - help is appreciated.

3. I want to match and update (when possible) the item in a listbox, that matches the first typed in letters - AS A USER types text into a text box. basically, I want to supplier a user with a textbox (for data entry), and a list of items. as the user types in text, the first characters typed in used to match entries that begin with the typed characters - all other entries will be removed. This way, the items in the list gradually decreases until only a few or one item remains (in the case of a match). Where there is no match between the users entered characters/text and the items in the list, no list entries will be removed - but maybe a msgbox can be displayed to indicate no match.

I would be particularly be grateful for any code snippets that help clarify the best way to proceed (especically for #3)
.



Relevant Pages

  • Re: How to do this (listbox control)
    ... so I can display the contents of a std::map (or in VB ... I want to use a users selection in one combobox, to 'filter' the ... characters - all other entries will be removed. ...
    (microsoft.public.vb.general.discussion)
  • Re: Decoding CJK characters to unicode in Tcl
    ... characters to some channel. ... display is done by either the OS's terminal or by ... Work" (with varying degrees of beauty depending on the selected font); ... the selection of a font for a widget (which are the things that accept ...
    (comp.lang.tcl)
  • Re: Displaying only specified values-not using Autofilter
    ... now that you want to make a selection from the "1"s on Sheet 1 and have ... be assigned to Shift A,Shift B, and Shift C. ... I'd like sheet one then to only display those selected items. ...
    (microsoft.public.excel)
  • 26 Suggestions for both Word and Excel
    ... Transpose should have an extra facility to transpose the selected cells ... display begins in the second line and therefore we cannot see row name A, B, ... And more in a single selection at a time, then there will be no problem. ... Identity to any selected Paragraph, line, or any character or criteria. ...
    (microsoft.public.word.docmanagement)
  • Re: Displaying only specified values-not using Autofilter
    ... now that you want to make a selection from the "1"s on Sheet 1 and have ... be assigned to Shift A,Shift B, and Shift C. ... I'd like sheet one then to only display those selected items. ...
    (microsoft.public.excel)