C# windows programing
wht is meant by object sender,EventArgs e in c# windows prgmng?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna Rajput SinghPosted Jul 26, 2016, 9:04 PM
Ehsan SajjadPosted Jul 26, 2016, 4:12 PM
Ritesh SinghPosted Jul 26, 2016, 1:51 PM
The sender is the control that the action is for (say OnClick, it's the button).
The EventArgs are arguments that the implementor of this event may find useful. With OnClick it contains nothing good, but in some events, like say in a GridView 'SelectedIndexChanged', it will contain the new index, or some other useful data.