View Single Post
  #2 (permalink)  
Old March 7th, 2007, 12:19 PM
rodmcleay rodmcleay is offline
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

This problem would be better in a different forum catagory like C#.
I beleive the error is telling you exactly what the problem is at any rate.
Your methods do not match the delegate you are subscribing to.
Change you method signature to match the delegate.
That is your method must have two paramters, the object and the event args.
protected override void OnMouseMove(object sender, System.Windows.Forms.MouseEventArgs e) {//do something}



======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================