|
-
Jun 7th, 2000, 11:13 PM
#1
Thread Starter
New Member
Hope somebody can help me with this problem.
I have a combo box selection for user. It contents for eg.:
A
B
C
When user clicks and selects, say, "B", it will be selected and when the user selects from the same combo box again, the following is listed
A
B
B
C
The item "B" appears twice in the combo list. If user selects "B" again, it will then appear three times in the list.
How do I prevent this from happening and get the original combo list?
Thanks & Regards.
-
Jun 7th, 2000, 11:19 PM
#2
_______
refresh
not sure what you are doing but just clear your combo and then call your load combo process again
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jun 7th, 2000, 11:20 PM
#3
Addicted Member
I'd check the code in your Combo_Change() procedure if I were you. If anything is being added to the Combo list, that's where it's happening from. According to what you've said above.
-
Jun 7th, 2000, 11:27 PM
#4
Addicted Member
Uhhh....
I meant Combo_Click().
Sorry, I'm stupid. I was born that way and it's got progressively worse.
-
Jun 7th, 2000, 11:54 PM
#5
PowerPoster
Just use Combo1.Additem
All you need is just add another item into the combobox and make sure you jave set the Sorted properties to True
Code:
Combo1.Additem Combo1.Text
-
Jun 8th, 2000, 03:35 PM
#6
Addicted Member
Chris,
I think he was trying to STOP this from happening!
-
Jun 8th, 2000, 03:43 PM
#7
PowerPoster
Re: Just use Combo1.Additem
Originally posted by Chris
All you need is just add another item into the combobox and make sure you jave set the Sorted properties to True
Code:
Combo1.Additem Combo1.Text
Oh!...Sucks, I miss out the most important line. So just forget the my previous post. Why not you just set the ComboBox style to Dropdown List?
-
Jun 8th, 2000, 10:38 PM
#8
Thread Starter
New Member
Thanks
Thanks guys for all your help and suggestions. Really appreciate it. As suggested by Chris, I tried setting style to Dropdown List, but same problem still occurs.
I have decided to instead convert from using combo boxes to using list box. Think that will solve my problem?
Thanks again!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|