473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 943
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

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

Similar topics

3
by: Saucer Man | last post by:
Is this only available as part of Visual Studio or can it be purchased separately? -- Thanks!
2
by: mdimitris | last post by:
Goodevening I am new to the community and I would like to post a question. I think the solution is simple I just couldnt find the right one. I want to build a simpe program that will manage an...
2
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
have a problem installing visual basic 2008 express edition web install on vista it completed installing the runtime components successfully and then it says ".net framework 3.5 and the other...
3
by: firozfasilan | last post by:
I am new to visual basic 2008. In the past I have used vb6 to display an existing crystal report. I would like to accomplish the same with vb.net. However I am not clear on the syntax to display a...
2
by: pritish87 | last post by:
Please tell me about new featute of visual basic 2008?
0
by: jsprigg | last post by:
Howdy All, I'm having a fair bit of trouble with this one. I've got an API which is inaccessible from Access 2007 that I need to use with my database. After some tinkering I managed to get...
0
by: Soulz | last post by:
Hi i need to do a project that connect to a desired wireless network in visual basic 2008. Currently i need to select manually from the wireless network list outside the vb program first the...
0
MusoFreak200
by: MusoFreak200 | last post by:
Hey guys, i have been having trouble getting started with a visual basic 2008 project. I happen to be reasonably new to visual basic and am finding that it is more difficult to work out solutions...
1
by: Botter2EE | last post by:
i need some codes for my new program at vb 2008 i need to know how i can make mouse cursor move into the text i put on text box i mean , i will make text box and write on it For example " My...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.