I am making a custom Listbox (for the compact framework).
I have made an event (OnDrawItem). I would like to know how to get my custom event to show up in the event list in the properties window in Visual Studio.
I am using C# and Visual Studio 2008.
Here is an example of my class with the event:
class OwnerDrawnListBox<T> : System.Windows.Forms.Control
{
// Other List Box things
public DrawItemEventHandler DrawItemEventHandler { get; set; }
public OwnerDrawnListBox()
{
// ListBox init stuff
}
// Other ListBox Stuff
}