VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A Better Listbox Example...

Burbble  (4 Submissions)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

I have submitted a pretty bad listbox example before, but this is one that demonstrates how to use the ListIndex function. All you need to do is place 2 Listboxes, 2 command buttons, a timer, and a textbox. (Don't worry about their position, just put them anywhere and accept their default names. This can be done by double clicking on the icon.) Then, copy the code into the form and run it. Select any item in the list on the left, and double click on it or click Add. It will be added to the 2nd list. Add as many as you like. If you then select it in the list on the right, and click Remove, or double click, then it will remove it. (Note that it will still be selected, see the code for how to do that.) The text box on the bottom shows the two list box's indexes. Please tell me what you think of this example, and vote. Thanks :)

Assumes
Just create the objects stated above. Remember to use the default names and you can put them anywhere on the form, the code has all the positions, etc.

Rate A Better Listbox Example... (9(9 Vote))
A Better Listbox Example....bas

A Better Listbox Example... Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters