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.
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 used this:
VB Code:
Private Sub Form_Load()
With Me.List1
.AddItem 1
.AddItem 2
.AddItem 3
.AddItem 4
End With
End Sub
and I got this:
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."
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.
Yes there is a way to fix it' if that the method you like using you can press [ENTER] after you enter each number in the text field Press 1 -> press Enter press 2 Press Enter
also you chould put them into a File then paste them in.
tho time comsumeing as pointed above.
When your dreams come true.
On error resume pulling hair out.
Yes there is a way to fix it' if that the method you like using you can press [ENTER] after you enter each number in the text field Press 1 -> press Enter press 2 Press Enter
also you chould put them into a File then paste them in.
tho time comsumeing as pointed above.
You have to hold down the "Control" Key first and then Press the "Enter" Key. Try it.
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.
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."
. . . each number in the text field Press 1 -> press Enter press 2 Press Enter . . .
I think you meant the List Property:
Last edited by Mark Gambo; Aug 26th, 2005 at 10:19 AM.
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."
Cool thanks for that. never know that one before., it's true you learn something new eveyday.
I found that one by mistake one day . . .
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."
using MS Sans Serif. I tried 01, 02, 03 etc and that sorted it out. its kind of annoying but i can work with it. .
cheers guys
Hey, is it possible for you to zip up the form and the project file so I can take a look at the problem. Remove any confidential code.
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."
Re: [RESOLVED] Problem with numbers in list box -->
Originally Posted by oldmcgroin
yeah no problem, here you go. let me know what you make of it
Sure enough when I opened the project file I saw the 's, just like in your post. I deleted the 's and I was able to type in the numbers from 1 to 10 with no problem. So deleted the numbers and then try re-typing them but instead of hitting the ENter Key after each number hold down the control key then press the Enter Key, you will see that the cursor advance to the next line.
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."