title: How to change pictures using listview
body: <p>I have been trying to find out for hours how I can use a menu to select a picture, for example if the list had a carrot in it; there would be a picture of a carrot beside it when you click it. I am not very experienced with visual basic (I just started) so I need your guys help. I have some code already but I don't think it works</p>
  
  <pre><code> Dim imgList As New ImageList
    ListView1.View = View.Details
    ListView1.Width = 500
    ListView1.Columns.Add("Name", 100, HorizontalAlignment.Left)
    ListView1.AllowColumnReorder = True
    ListView1.Columns(0).DisplayIndex = 1
    ImageList1.Images.Add("Name", Image.FromFile("C:\pic\test.jpeg"))
    ListView1.SmallImageList = ImageList1
  </code></pre>