I designed a Dialog similar to IntelliSense, which should appear on a particular key stroke. (My project is VS-Package, my dialog will be opened as a team) The problem is that I do not know how to display my dialog at the current cursor position . There are simple ways to process the currently selected text, for example. from
TextSelection objSel = (EnvDTE.TextSelection)(dte.ActiveDocument.Selection);
but I canβt get any absolute position here.
I searched a lot, but found nothing that could help me. Maybe someone can give me a hint or, even better, code examples to solve my problem. I am very grateful for your help!
source share