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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ritesh SinghRank #2,164 · 658 reputationPosted Jul 26, 2016, 9:51 AM EDT
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.
Ehsan SajjadRank #512 · 4.8K reputationPosted Jul 26, 2016, 12:12 PM EDT
Krishna Rajput SinghRank #605 · 4K reputationPosted Jul 26, 2016, 5:04 PM EDT