Well what I want to do is; When the user selects an item in the ListBox, the PictureBox loads a file from the resources and displays it, and when the user selects another item, the PictureBox do the same procedure but gets another picture. Since I've never used code to grab something from the resources, I have no clue on where and how I'm gonna load them. A friend of mine gave me this[^] link where it was described how a PictureBox could be used. pictureBox1.Image = _ new Bitmap(Assembly.GetExecutingAssembly(). _ GetManifestResourceStream("PictureBoxControl.tinyemulator_res.jpg"))
The issue with this is that first Assembly is undefined and second that, well I have no freakin' idea on where the UI input should be. Is that enough to help me? :) Cheers!
J
JohanSturk
@JohanSturk
Posts
-
Picturebox Control Question -
Picturebox Control QuestionHi all, I started learning VB.NET a few months ago and I love it. What I'm having trouble with though is that I'm trying to assign a picturebox to a listbox so that the picture changes when selecting another item. But I can't figure out how. The pictures are in the project resource files, how do I assign them to the process? There's 78 pictures. :) The form with the picturebox and listbox.[^] Cheers!