[Mono-dev] RichTextBox Scroll Position
Ivan N. Zlatev
contact at i-nz.net
Tue Oct 21 11:09:51 EDT 2008
On Mon, Oct 20, 2008 at 5:00 PM, Alisdair Little
<alisdair_little at yahoo.com> wrote:
>
> Hi Guys,
>
> Any idea how to get the vertical scroll position for a RichTextBox?
>
> I have tried;
> [DllImport("user32")]
> public static extern bool GetScrollInfo(IntPtr hwnd, int fnBar, ref
> SCROLLINFO lpsi);
> [DllImport("user32")]
> public static extern int GetScrollPos(IntPtr hwnd, int nBar);
> [DllImport("user32")]
> public static extern int SendMessage(HWND hwnd, int wMsg, int
> wParam, IntPtr lParam);
>
> All these calls work under Visual Studio/windows but not under mono.
> My Environment: Windows XP, Visual Studio 2005 and Mono 2.0.
>
What about richTextBox.GetPositionFromCharIndex
(richTextBox.GetFirstCharIndexFromLine (0)).Y ?
--
Kind Regards,
Ivan N. Zlatev
More information about the Mono-devel-list
mailing list