Hi I am trying to create some events and event handlers in my code.
There are plenty sites listing events, but I can't get a handle off them as I can't find one that has a complete A-Z list of everything that is needed and has it work.
To put it simply I have a forms application in VS C#, I have a text box where I enter text, text box to store text, a button that copies the entered text and a 3rd text box which should be event triggered to hold the new text.
I enter text in the first text box and press the button which runs the VS native event to copy the text to the second text box then I want an event triggered that text box 2 has changed that would update text box 3. This is just a basic example I am trying to do to learn events.
I also dont know how to use EventArgs. I would like to send the old value and the new value as part of the event so the handler checks if the value has changed and only updates the text box if it has.
Thanks for your help.
There are plenty sites listing events, but I can't get a handle off them as I can't find one that has a complete A-Z list of everything that is needed and has it work.
To put it simply I have a forms application in VS C#, I have a text box where I enter text, text box to store text, a button that copies the entered text and a 3rd text box which should be event triggered to hold the new text.
I enter text in the first text box and press the button which runs the VS native event to copy the text to the second text box then I want an event triggered that text box 2 has changed that would update text box 3. This is just a basic example I am trying to do to learn events.
I also dont know how to use EventArgs. I would like to send the old value and the new value as part of the event so the handler checks if the value has changed and only updates the text box if it has.
Thanks for your help.