Displaying selected list item in Style #2 combo box 
Author Message
 Displaying selected list item in Style #2 combo box

I have a question regarding displaying the selected
list item of a style 2 combo box (drop-down list). In
my application, a user can add information to a
database. One particular bit of information is chosen
via the above combo box. The user clicks and the
chosen list item is displayed. So far, so good.
Using the ListIndex property, I can save the index
of the chosen variable. Now,the user wants to edit the
information previously entered, which brings up a
different form.  My problem is how to
display the chosen list item in the text area of the
combo box so that the user knows the previously
selected value. The combo box comes up with a blank text
area, as it did during "add" mode. Since it's a combo
box, I can't use the .Selected property, and I get an
"invalid property value" when I try using the SelText
property, e.g. Status_list.SelText= stringexp.

This problem seems to be straightforward, but I can't find
a way to solve it. I hope I've given enough info.
Thanks in advance for any ideas.

Kevin Kohler



Mon, 01 Dec 1997 03:00:00 GMT  
 Displaying selected list item in Style #2 combo box

Quote:

>My problem is how to
>display the chosen list item in the text area of the
>combo box so that the user knows the previously
>selected value.
...
>Kevin Kohler


Set the ListIndex to the appropriate back to the selected item when it is displayed the
second time.  If you want to change the text of the selected item you can't with a type 2
comboBox.

Max



Wed, 03 Dec 1997 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Color of a selected item in a combo/list box

2. Color of a selected item in a combo/list box

3. Making a list box display only the selected item

4. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

5. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

6. Newbie: Set a combo box style(2)/Dropdown list to the first element in the list

7. Rebuild select list for combo/list box

8. Updating a combo box list W/limit to list selected

9. Bold text on certain items in a combo box / list box

10. Selecting in VB Combo Boxes (Style 0)

11. Fill Combo List using Criteria selected in another Combo List

12. Inserting data into combo box with style 2 - drop down list

 

 
Powered by phpBB® Forum Software