How do I do it? It's for a bookmark system.. also if you know how can someone show me how to save the contents of one session of the program (so the bookmarks are still there the next time it's started)
Printable View
How do I do it? It's for a bookmark system.. also if you know how can someone show me how to save the contents of one session of the program (so the bookmarks are still there the next time it's started)
to add entries to a multi-colum listbox, use VbTab as a delimeter.
Code:
List1.AddItem "Your Information" & VbTab & "More Information"
I suggest that you use a ListView rather than a Listbox to display multiple columns.
yeah martin is right... first of all using vbTab is a bad idea because if one string is long and another is short in the first column, your tabs wont line up anyway
use the listview which is part of Microsoft Windows Common Controls (component you must reference) and set it to reportview for a multiline listing (same look as a peer-to-peer filesharing program if you have ever seen one of those)
thanks kleinma, was looking for a microsoft listview control :o
ListView is the one that allows you to have small icons beside each item I'm guessing ? how do you add columns to a listview, and how do you add items ? it doesn't look as straightforward as a ListBox
I've attached a small example.
its not as straight forward, but on the otherhand does about a million things more than the listbox.. use martins example to get familiar with it, and then post if you have any specific questions ;)
Got everything working fine, learned alot from that file Martin :) Now on to my other question
Quote:
also if you know how can someone show me how to save the contents of one session of the program (so the bookmarks are still there the next time it's started)
It depends on what you want to save. If you just want to save a few of the user's choices and/or things like values in textboxes the click the GetSetting link in my signature. If you have a lot of data to save then a database is probably what you want to use. You could also write it out to a text file and read it back in the next time.