Click here to Skip to main content
15,892,059 members

Comments by sivasu_bra (Top 4 by date)

sivasu_bra 8-May-12 17:33pm View    
Ok, Thanks.
sivasu_bra 8-May-12 17:29pm View    
I need to raise an event with custom data from my application and with mouse data too. So I need the MouseEventArgs arguments to join then with my own, before raising the event.
But the framework marks the "NewMouseEventArgs" constructor with an error, preventing the build and saying that "MouseEventArgs class doesn't have a constructor with 0 arguments", although I've put all of the MouseEventArgs arguments in place, while constructing the new class.
sivasu_bra 8-May-12 17:16pm View    
I know that EventArgs contains no event data. That's exactly why a need to derive from MouseEventArgs and not from EventArgs. But, when i try to define a new class, say NewMouseEventArgs, the constructor of the new class raises an error, saying that MouseEventArgs doesn't have a constructor with 0 arguments, although all the right arguments for MouseEventArgs are there.
sivasu_bra 4-Sep-11 17:42pm View    
Thank You, Mika. I searched a lot for this answer. It was of a great help.