Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello!
I'm trying to make a little picture downloader, and the main idea of it is that i have a loaded document, with about 7000 lines of codes which are used to find pictures on the web. In the file there is 5 lines of codes for each photo, that should individually be viewed to sperate labels. Then my download part of the program should download the picture, and afterwards each label should skip 5 lines, displaying the next series of numbers, ready for download.

So what i'm looking for is some piece of code that could read specefic lines in a ListBox, and display them in a label. After download, it should skip 5 lines, and get the next codes ready for display. Each label should only view 1 string at a time.

Could anyone make me a piece of code to use or instruct me on a non-pro scale on how to do this? Code examples is preferred..

Thanks,
nikko4913
Posted
Comments
Sergey Alexandrovich Kryukov 8-Mar-15 17:18pm    
What is non-pro scale? There are only two things: programming and trash.
Why I, for example, would suggest you some code, if the whole idea looks not good enough to discuss anything seriously. What is your ultimate goal?
—SA
Nikko4913 8-Mar-15 17:27pm    
As i wrote, i'm okay with code examples.. I meant that i would like some explanation about the code, indstead of just a paste of code. Hope this cleared it up a bit for you :)
Sergey Alexandrovich Kryukov 5-Apr-15 22:14pm    
My only comment is: you got what you have been asking for: an answer from a non-programmer, "Solution 1". Ask for "non-pro scale" solution and got something totally unprofessional in response. Congratulations!
—SA

1 solution

You could programmatically select a listbox index and do
VB
Label1.Text = Listbox1.SelectedIndex

You could then do a loop and tell it to skip. The skip part you could create an integer and if it is a specific number, skip the next five numbers and continue with the loop.

For something extra-difficult (not really) do some multi-threading so your computer doesn't throw you out for however long.
 
Share this answer
 
Comments
Nikko4913 9-Mar-15 3:07am    
I alteady have that piece if code, but Then i would have to select each item to display Them.
iProgramIt 9-Mar-15 4:43am    
Programatically.
Nikko4913 9-Mar-15 4:45am    
Yeah but how would you suggest i do that? Sorry for the noobness :p
iProgramIt 11-Mar-15 2:00am    
Dim ListBoxIndex As Integer = 1 'Select Which Item (Item 1)
YourListBox.SelectedIndex = ListBoxIndex - 1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900