private unsafe void SetScrollPos( Point p ) { SeqPoint res = new SeqPoint(); res.x = p.X; res.y = p.Y; IntPtr ptr = new IntPtr(&res); Message m = Message.Create(this.Handle, EM_SETSCROLLPOS, IntPtr.Zero, ptr); this.WndProc(ref m); }