Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 131,594 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,957 people online right now. Registration is fast and FREE... Join Now!




Clear List Box

 
Reply to this topicStart new topic

Clear List Box, want to clear contents of a list box

hilikus421
post 3 May, 2005 - 06:56 PM
Post #1


New D.I.C Head

*
Joined: 8 Dec, 2004
Posts: 2

I added multiple items to a listbox through

lstCategories.additem "item", index

is there any way i can clear the entire list box, or do i have to go in and clear each item separately?

by the way,yes i am a n00b, and wasn't taught anything about listboxes in my class, so any tips would be helpful : )
User is offlineProfile CardPM

Go to the top of the page


Amadeus
post 3 May, 2005 - 07:09 PM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,158



Thanked 32 times

Dream Kudos: 25
My Contributions


vb or vb.net?

If it's vb.net, you can use
CODE

ListBox1.Items.Clear()

if it's vb, you can use
CODE

ListBox1.Clear
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 03:56AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month