I am building a simple calculator. I have three textBoxes: textBox1 (first operand), textBox2 (second operand), and textBox3 (result). I have numerous operand functions that can be performed. I also have a button that will clear all fields, as well as other functions.
I am having difficulty with the code needed to delete the text in a specific textbox with a button only when the cursor is in that textbox.
Ex: if cursor is in textBox1, the button only clears that textbox.
Any help is much appreciated.
Thanks.