EventInfo.AddEventHandler requires a delegate as its second parameter. The syntax you require is therefore:
ei.AddEventHandler(Ctrl, new EventHandler(StatusBarEventHandler)); -- Ian Griffiths DevelopMentor ----- Original Message ----- From: "Keith Balaam" <[EMAIL PROTECTED]> > My application dynamically adds UserControls to it's client area. ... > ei.AddEventHandler(Ctrl, StatusBarEventHandler); > > When I try to build the code I get the following error: > "Method 'OMD.Core.OMDView.StatusBarEventHandler(object, System.EventArgs)' > referenced without parentheses" You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.