I want to have an event that takes an enum only as the argument. For example
public enum MyEvents{ Event1 } // how do I declare this to take enum MyEvent
You need to declare a custom eventhandler.
public class MyEventArgs: EventArgs { ... } public delegate void MyEventHandler(object sender, MyEventArgs e); public class MyControl: UserControl { public event MyEventHandler MyEvent; ... }