It's more common in languages like java and C# to represent the delegate +data with a class:
TextChangedWatcher watcher = new TextChangedWatcher (this, arg2); this.foo.TextChanged += new EventHandler (watcher.TextChanged); On Sat, 2007-02-03 at 20:36 +0000, Paul wrote: > Hi, > > I've googled for this for a while now, but can't seem to find a way to > do it. > > I'm trying to pass more than one argument on a line like > > this.foo.TextChanged += new System.EventHandler(this.foo_TextChanged, > arg2); > > where arg2 can be just about anything. Any hints would be appreciated. > > TTFN > > Paul > _______________________________________________ > Mono-winforms-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-winforms-list _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
