Page 1 of 1

image rotate ... including URL

Posted: Wed Aug 03, 2011 10:55 pm
by NewGuy
Hey there

so .. i know what i want to happen .. i have the layout set up .. pretty simple ..

- 1 picture box (in the about form)
- 1 folder with a number of graphic files
- 1 file containing the name of every file in the folder

what im trying to do .. and figure out the code around, is :

i want the program to look in the folder ex : "My.Application.Info.DirectoryPath & "\Graphics\" and display the pics in picturebox1 .. with a ex. sleep(2000) .. including the URL link to the actual picture showed

So every time the pic in picturebox is refreshed .. so is the clickable link to the actual pic beeing show right now .. so if a person activates the "double click" event on picturebox1, the preffered internet browser is launched with the URL for that link

I have a list of graphics available in the same folder as the pics .. called gfx.txt and my thought was to get the list of pics from that, but im unsure how to get the URL in there too

Any thought on how to do this, or maybe even some lines of code would be greatly appreciated !!

Thank you on beforehand !!

Still learing Visual Basic .. and loveing every minute :)

Re: image rotate ... including URL

Posted: Wed Aug 03, 2011 11:11 pm
by mandai
You could store the URL in the same text file by having a separator after the graphic file name.

Re: image rotate ... including URL

Posted: Thu Aug 04, 2011 8:19 pm
by NewGuy
mandai wrote:
You could store the URL in the same text file by having a separator after the graphic file name.
Thanks Mandai :-)

yeah .. i was thinking the same thing too .. im playing with this idea :

graphics1.jpg ; www.google.com

.. im just a bit unsure how to link that in code .. and having the URL dynamically change with graphics currently beeing showed ?

do i load all the graphics as a list in memory ? .. or what would be the smartest here ?

Re: image rotate ... including URL

Posted: Thu Aug 04, 2011 8:32 pm
by mandai
You could load the text file as a string array, based on each new line.

Re: image rotate ... including URL

Posted: Thu Aug 04, 2011 8:41 pm
by NewGuy
mandai wrote:
You could load the text file as a string array, based on each new line.
ok ... ill look into that .. thanks :-) if you happen to know a place online where a example is displayed that would be awsome .. but again .. thanks for your help !!.. truely appreciated :)