image rotate ... including URL

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
NewGuy
New Member
New Member
Posts: 20
Joined: Sat Jun 04, 2011 8:46 am

image rotate ... including URL
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 :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: image rotate ... including URL
mandai
You could store the URL in the same text file by having a separator after the graphic file name.
User avatar
NewGuy
New Member
New Member
Posts: 20
Joined: Sat Jun 04, 2011 8:46 am

Re: image rotate ... including URL
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 ?
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: image rotate ... including URL
mandai
You could load the text file as a string array, based on each new line.
User avatar
NewGuy
New Member
New Member
Posts: 20
Joined: Sat Jun 04, 2011 8:46 am

Re: image rotate ... including URL
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 :)
5 posts Page 1 of 1
Return to “Coding Help & Support”