I have two textboxes, and a button. When I press the button, I want to know where my current caret is (either of the two boxes). I need this to know where to insert a certain text. I tried textbox1.Focused; textbox1.enabled but neither worked. How should I implement this? Thanks
I have two textboxes, and a button. When I press the button, I want
Share
Keep in mind that when you click the button, your textboxes will no longer have focus. You’ll want a method of keeping track of what was in focus before the button’s click event.
Try something like this