title: Custom Component On Click Event
body: <p>I've built a custom component that basically has a picture box and label in it. In the parent form, I want to be able to detect when its been clicked on. The standard .click event doesn't seem to be working, but I've never used events before so am unsure if I'm using them correctly. Heres the code I'm using (in the parent) to try and make it recognise the click:</p>
  
  <pre><code>Item aItem = new Item();
  aItem.Icon = ItemImage;
  aItem.Title = Title; 
  aItem.Click += new EventHandler(ItemClicked);
  aItem.Filename = File;
  </code></pre>
  
  <p>and heres the method its calling:</p>
  
  <pre><code>public void ItemClicked(Object sender, EventArgs e)
  {
      MessageBox.Show("Item Clicked!");
  }
  </code></pre>
  
  <p>This code never fires. Do I need to put anything into the component or am I just doing this wrong?</p>
  
  <p>Cheers</p>