title: How to set selected index on listbox selection
body: <p>I've done this before and got it fully working but i can't remember how</p>
  
  <p>there's 3 properties behind my item class</p>
  
  <pre><code>namespace Budgeting_Program
  {    
      [Serializable]
      public class Item
      {
          public string Name { get; set; }
          public double Price { get; set; }
          public string @URL { get; set; }
  
          public Item(string Name, string Price, string @URL)
          {
              this.Name = Name;
              this.Price = Convert.ToDouble(Price);
              this.@URL = @URL;
          }
  
          public override string ToString()
          {
              return this.Name;
         }
      }
  }
  </code></pre>
  
  <p>now in my edit window </p>
  
  <pre><code>public Edit(List&lt;Item&gt; i, int index)
  {
      InitializeComponent();
      itemList = i;
      updateItemList();    
      itemListBox.SetSelected(index, true);                               
  }
  </code></pre>
  
  <p>i want the textboxes to reflect the Item Data behind the selected index. How is this possible. I remember doing it before i just dont remember what method i used.</p>