Hello , i have a emergency!
i look for a way to execute a image from a listbox taken randomly.
i tried this:
textbox1.test = random_number ' i managed to generate a random number
picture1.image = listbox1.item(textbox1.text) but it don't work
also
picture1.image = image.location(listbox1.item(textbox1.text)) ' notice important i add all path my pictures are in my.resources.[name of pictures] !
NO result! crash of applications.
somebody could be my savior! help me please! thank you so much for your answer in advance!
i look for a way to execute a image from a listbox taken randomly.
i tried this:
textbox1.test = random_number ' i managed to generate a random number
picture1.image = listbox1.item(textbox1.text) but it don't work
also
picture1.image = image.location(listbox1.item(textbox1.text)) ' notice important i add all path my pictures are in my.resources.[name of pictures] !
NO result! crash of applications.
somebody could be my savior! help me please! thank you so much for your answer in advance!