Ok. Here is what I need to do. I have a block of code that is triggered by a Textbox control getting the focus. This code basically highlights the contents of the field so it can be overwritten by typing over the data.
I need to apply this code to all text boxes on the form. I do not want to paste the code into methods for each textbox control. I would rather have it in one method that is called from each textbox.
How can I do this? In my head, i think i would need to pass the reference to the control to the method and then use that to execute the code.
Any help would be appreaciated.
I need to apply this code to all text boxes on the form. I do not want to paste the code into methods for each textbox control. I would rather have it in one method that is called from each textbox.
How can I do this? In my head, i think i would need to pass the reference to the control to the method and then use that to execute the code.
Any help would be appreaciated.