468,167 Members | 1,968 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

visual basic 2008, add item to list box

i want to add items in listbox:

usually when items are added in listbox , each item is added below the list box earlier entries and if we want to see we have to scroll down. i want that every new item should be added at the top of list box. please i want code for this, or any property etc
Jul 31 '16 #1
1 727
Luk3r
300 256MB
You should look into the "insert" method of listboxes. The below example will insert the string "Item" into the first (0) index of the listbox.

Expand|Select|Wrap|Line Numbers
  1. ListBox1.Items.Insert(0, "Item")
Aug 1 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by =?Utf-8?B?amVmZmVyeQ==?= | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.