hey guys got an annoying problem. whenever i try to enter numbers into a list box they keep coming up like a box like this in the properties window and on the actual form they are displayed like this │. anyone know what the problem is.
i was just putting them in using 'List' in the list properties window. Using numbers 1 -9 i get the box but if use 10 upwards the numbers come up ok. its quite strange. this has only just started happening
i was just putting them in using 'List' in the list properties window. Using numbers 1 -9 i get the box but if use 10 upwards the numbers come up ok. its quite strnage. this has only just started happening
Why not use the method I posted to load the ListBox?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
yeah i tried that and it worked but its more time consuming, . i just wanted to know why it happened and if it had a happened to anyone else and if there was a way to fix it.
yeah i tried that and it worked but its more time consuming, . i just wanted to know why it happened and if it had a happened to anyone else and if there was a way to fix it.
If you are adding sequential numbers you can try this:
VB Code:
Private Sub Form_Load()
Dim a as Long
With Me.List1
For a = 1 to 100
.AddItem a
Next a
End With
End Sub
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
this is what happens when i enter text into a the list dropdown box thingy in the listbox property window
- (should be 1)
- (2)
- (4)
- (7)
- (8)
10 - 10 onward is ok.
screenshot
If you type in:
01
02
03
04
05
06
07
08
09
what happens?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
this is what happens when i enter text into a the list dropdown box thingy in the listbox property window
- (should be 1)
- (2)
- (4)
- (7)
- (8)
10 - 10 onward is ok.
screenshot
Here is a dumb question, what Font are you using?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."