Results 1 to 6 of 6

Thread: how to add text to listbox ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    how to add text to listbox ?

    hi all i'm a starter i just want to know
    how to add text or digit to listbox?

    here the screen shot



    help me and give the code

    thanks

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: how to add text to listbox ?

    vb Code:
    1. listbox1.items.add("your text")

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    Re: how to add text to listbox ?

    ok thanks but i want to make listbox show
    that's i write on textbox ?
    how to do ?

  4. #4

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    Re: how to add text to listbox ?

    thank a lot but if i added i want to remove text or select how to do ?

    How do I move selected item up the list 1 position?
    Last edited by tphilakone; Jun 11th, 2008 at 10:04 AM.

  6. #6
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: how to add text to listbox ?

    you can use listbox1.SelectedItem or listbox1.SelectedItems to get/Set selected items as well as you can use listbox1.Remove or listbox1.RemoveAt() to remove the particular item.
    __________________
    Rate the posts that helped you

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