mattkw80
Well-known member
Hey guys, putting together a simple training program in which I need to show the user text and pictures. I want them to be able to hit a "next button" which will step through the text and pictures, like a slide show. All the "data" is hard coded in the program, so I'm not using a database, or xml, or anything like that.
Basically I've been going like this:
form1.textbox1.text = "Here is my first sentence"
form1.picbox1.image = (firstpicture.jpg)
messagebox.show ("next")
form1.textbox1.text = "Here is the second sentence."
form1.picbox1.image = (secondpicture.jpg)
messagebox.show ("next")
etc. etc. etc.
Is there any easy way to lump all of my text and picture file names into one, and seprate them by // marks, so that when the user hits a next button, it will go to the next section?
ie:
form1.textbox1.text = "Here is my first sentence // Here is the second sentence."
form1.picbox1.image = (firstpicture.jpg//secondpicture.jpg)
So, when the user hit next, it would show the next text and the next picture file name.
Is there a better way to do this?
Basically.... I'd like one block of text, seperated by // marks, and a list of picture.jpg files, to go with each //. Anybody know a better way to do this?
Basically I've been going like this:
form1.textbox1.text = "Here is my first sentence"
form1.picbox1.image = (firstpicture.jpg)
messagebox.show ("next")
form1.textbox1.text = "Here is the second sentence."
form1.picbox1.image = (secondpicture.jpg)
messagebox.show ("next")
etc. etc. etc.
Is there any easy way to lump all of my text and picture file names into one, and seprate them by // marks, so that when the user hits a next button, it will go to the next section?
ie:
form1.textbox1.text = "Here is my first sentence // Here is the second sentence."
form1.picbox1.image = (firstpicture.jpg//secondpicture.jpg)
So, when the user hit next, it would show the next text and the next picture file name.
Is there a better way to do this?
Basically.... I'd like one block of text, seperated by // marks, and a list of picture.jpg files, to go with each //. Anybody know a better way to do this?