[Mono-dev] RichTextBox Scroll Position

Alisdair Little alisdair_little at yahoo.com
Mon Oct 20 12:00:45 EDT 2008


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.

Thanks,

Al
-- 
View this message in context: http://www.nabble.com/RichTextBox-Scroll-Position-tp20073031p20073031.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list