Combo Box / Dropdown list 
Author Message
 Combo Box / Dropdown list

Does any know why this is occurring and is there a way around it.
I am loading a dropdown list with a simple list of items. When the number of
items in the list gets to 5042 the list doesn't appear to dropdown.  If the
number of items in the list is 5041 everything  seems to be fine. If the
number of items in the list is 5043 everything also seems to be fine except
that the dropdown list is only long enough to display 1 item.  The farther
the number of items in the list gets away from 5042 the more "normal" the
dropdown list appears.

'here is a simple example with a listbox and a command button on 'form.
Private Sub Command1_Click()
    Dim x As Integer
    Screen.MousePointer = vbHourglass
    Me.Combo1.Clear
    For x = 1 To 5042
      Me.Combo1.AddItem "ITEM # " & x
    Next
    Screen.MousePointer = vbDefault
End Sub

Thanks



Fri, 08 Nov 2002 03:00:00 GMT  
 Combo Box / Dropdown list
Works fine here... there's really no need to prefix with Me.

what type of system are you running on?  Do you have all the service packs
for the OS and VB?  Is this part of a larger project or are you testing it
by itself?

-George Handlin, MCP


Quote:
> Does any know why this is occurring and is there a way around it.
> I am loading a dropdown list with a simple list of items. When the number
of
> items in the list gets to 5042 the list doesn't appear to dropdown.  If
the
> number of items in the list is 5041 everything  seems to be fine. If the
> number of items in the list is 5043 everything also seems to be fine
except
> that the dropdown list is only long enough to display 1 item.  The farther
> the number of items in the list gets away from 5042 the more "normal" the
> dropdown list appears.



Fri, 08 Nov 2002 03:00:00 GMT  
 Combo Box / Dropdown list
running on a P3. VB6.0 sp3. It is part of a larger project. But I had pulled
this out and was testing it completely by itself.


Sun, 10 Nov 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Combo Box dropdown list

2. Combo Box Dropdown List Width

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

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. How to control the number it items in a combo box dropdown list?

7. Default value for dropdown combo list box?

8. Combo Box - no2 dropdown list problem

9. COMBO BOX, STYLE : DROPDOWN LIST

10. Locked Combo Box BUG (Dropdown List Style)

11. How to list macro names in a combo box or a list box

12. Dropdown List Box and Long List Items

 

 
Powered by phpBB® Forum Software