intellisense

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alcibiade

    intellisense

    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.
  • Herfried K. Wagner [MVP]

    #2
    Re: intellisense

    "Alcibiade" <panda17x@liber o.itschrieb:
    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.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • andy.bu@kodak.com

      #3
      Re: intellisense

      On 6ÔÂ7ÈÕ, ÉÏÎç5ʱ48·Ö, "Herfried K. Wagner [MVP]" <hirf-spam-me-
      h...@gmx.atwrot e:
      "Alcibiade" <panda...@liber o.itschrieb:
      >
      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.
      >
      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

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

      Comment

      • Alcibiade

        #4
        Re: intellisense

        On 7 Giu, 03:53, "andy...@kodak. com" <haiqing...@gma il.comwrote:
        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.G etPositionFromC harIndex(Me.Syn taxRTB1.Selecti onStart)

        ......
        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 ;)

        Comment

        • =?Utf-8?B?VmVubmlsYQ==?=

          #5
          Re: intellisense



          "Alcibiade" wrote:
          On 7 Giu, 03:53, "andy...@kodak. com" <haiqing...@gma il.comwrote:
          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.G etPositionFromC harIndex(Me.Syn taxRTB1.Selecti onStart)
          >
          ......
          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 ;)
          >
          >

          Comment

          Working...