I have a form with several multiline Text Boxes. I would like to add a right click function that adds the current date at the current position, where the user might be typing.
However, as soon as you right click and trigger the contextmenuitem.Click event, the textbox no longer has focus. How can i determine which textbox had focus, and where the cursor position was, so that I can add the date at that spot?
Thanks
However, as soon as you right click and trigger the contextmenuitem.Click event, the textbox no longer has focus. How can i determine which textbox had focus, and where the cursor position was, so that I can add the date at that spot?
Thanks