Consider this function signature:
Private Void TextBox1_TextChange(Object Sender, EventArgs e)
As far as my knowledge goes I understand it as below.
-
Private is a modifier
-
Void is the return type
-
TextBox1_TextChangeis an event name.
Maybe I am wrong in the above case as I just started practicing in C#, Visual Studio 2005.
What is the definition/meaning of (Object Sender, EventArgs e) and how does it work?
TextChangeis (probably) the name of the relevant event, though the event isn’t shown in your code snippet so I can’t be sure.TextBox1_TextChangeis the name of a method that is probably set up to handle an event.Object Senderis a parameter calledSenderthat contains a reference to the control/object that raised the event.EventArgs eis a parameter calledethat contains the event data, see the EventArgs MSDN page for more information.See this page, Passing Parameters, for more information about how parameters work.
And this page, Events Tutorial, would probably be helpful as well.