Results 1 to 19 of 19

Thread: [RESOLVED] Problem with numbers in list box --> 

Hybrid View

  1. #1
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem with numbers in list box --> 

    Quote Originally Posted by oldmcgroin
    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.
    How are you adding the numbers in?

  2. #2

    Thread Starter
    Addicted Member oldmcgroin's Avatar
    Join Date
    Jul 2005
    Location
    Manchester, UK
    Posts
    182

    Re: Problem with numbers in list box --> 

    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

  3. #3
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Problem with numbers in list box --> 

    Quote Originally Posted by oldmcgroin
    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."


  4. #4

    Thread Starter
    Addicted Member oldmcgroin's Avatar
    Join Date
    Jul 2005
    Location
    Manchester, UK
    Posts
    182

    Re: Problem with numbers in list box --> 

    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.

  5. #5
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Problem with numbers in list box --> 

    Quote Originally Posted by oldmcgroin
    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:
    1. Private Sub Form_Load()
    2. Dim a as Long
    3.     With Me.List1
    4.         For a = 1 to 100
    5.                .AddItem a
    6.         Next a
    7.     End With
    8. 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."


  6. #6

    Thread Starter
    Addicted Member oldmcgroin's Avatar
    Join Date
    Jul 2005
    Location
    Manchester, UK
    Posts
    182

    Re: Problem with numbers in list box --> 

    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
    Attached Images Attached Images  

  7. #7
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Problem with numbers in list box --> 

    Quote Originally Posted by oldmcgroin
    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."


  8. #8
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Problem with numbers in list box --> 

    Quote Originally Posted by oldmcgroin
    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."


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width