intellisense

A

Alcibiade

Hi, I 'd like to create an intellisense for my editor.
I have only a problem I 'm not able to solve: I need to read x,y
position in pixel of a richtextbox cursor so I can locate in the same
location a listbox filled with selected words.
Can anyone help me?

Thanks a lot.
 
H

Herfried K. Wagner [MVP]

Alcibiade said:
Hi, I 'd like to create an intellisense for my editor.
I have only a problem I 'm not able to solve: I need to read x,y
position in pixel of a richtextbox cursor so I can locate in the same
location a listbox filled with selected words.

I think you are referring to the caret (input mark), not the cursor (mouse
pointer). You can use p/invoke with the 'GetCaretPos' function to get the
caret's position.
 
A

andy.bu

I think you are referring to the caret (input mark), not the cursor (mouse
pointer). You can use p/invoke with the 'GetCaretPos' function to get the
caret's position.


interesting topic . could you show us a bit more on how to implement
intellisense on IDE such as Visual studio.
thanks so much
 
A

Alcibiade

interesting topic . could you show us a bit more on how to implement
intellisense on IDE such as Visual studio.
thanks so much

Someone has told me the solution:
Dim at As Point =
Me.SyntaxRTB1.GetPositionFromCharIndex(Me.SyntaxRTB1.SelectionStart)

......
I've created intellisense in this way:
I have 2 forms: the first has a richtextbox, the second has a listbox
in binding with a datasource
in datatable I have 2 columns: father and child
if a word father is found in the text, so the listbox appears showing
filtered items as child ;)
 
V

Vennila

Alcibiade said:
Someone has told me the solution:
Dim at As Point =
Me.SyntaxRTB1.GetPositionFromCharIndex(Me.SyntaxRTB1.SelectionStart)

......
I've created intellisense in this way:
I have 2 forms: the first has a richtextbox, the second has a listbox
in binding with a datasource
in datatable I have 2 columns: father and child
if a word father is found in the text, so the listbox appears showing
filtered items as child ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top