Help with list Add/removeitem, vscroll. Search in the list, add detail to each lines.


Hello :)

I'm new to VB6, have gotten a little bit in my school. I now need to make a program, to try something different :-)

I wants to make a program, that can keep all my movie titles in a list file. Then ofc. a scrollbar to scroll down, when i add many movies. I need a button to add movie titels, this is the simple code: List1.AddItem InputBox("Enter the name of the movie").
1).Here i would also like a Fx If command, so if the movie allready is there, a msgbox shows up and says "The movie you are trying to add, is allready in the system" Fx. && I would like, so when i add the movie, i can add more info, Read more about what i mean, at number 4 here.

The next thing i need, i'm not sure how to add is:
2). How to remove a title again. I would like if i'll could just mark the movie with the mouse, and then use a remove button.

3). The next thing now is a search button, so a Inputbox shows up, and then i can type the name of the movie, and it then search the list, and mark the movie i'm looking after, also so it scrolls down to it.

4). Here i would like that extra info, if it's posible, so when i doubleclick the movietitle, a new window shows up, and the info i put in when adding the movie, is visible there, such as movie lenght, a plot about the movie and so on.

This is the start, i really could use some help to! Hops you guys can help me, a little bit of the knowledge i get here, i need for my exam. :-)

-. Vestbjerg :-) :-)

If you enjoyed this post, subscribe for updates (it's free)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.