Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15990

VS 2017 [Solved CODING BEGINNER] How can I show a images from listbox ?

$
0
0
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!

Viewing all articles
Browse latest Browse all 15990

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>