CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MMH

Search: Search took 0.04 seconds.

  1. Replies
    8
    Views
    27,450

    Re: Cursor position in Rich textbox?

    Sorry i forgot to mention about the namespace usage.

    it is..



    using System.Runtime.InteropServices;


    Also you need to register RichText Box events for text changed, keyDown and keyUp....
  2. Replies
    8
    Views
    27,450

    Re: Cursor position in Rich textbox?

    Here is one way to find out the cursor position in Rich Textbox.



    private static int EM_LINEINDEX = 0xbb;
    [DllImport("user32.dll")]
    extern static int SendMessage(IntPtr hwnd, int message,...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured