test1 title

test body http://i.microsoft.com/global/d7033c38-6ed9-42f4-a18b-94f4c9393a3f.png


UltraNav Scroll Helper

using System;using System.ComponentModel;using System.Windows.Forms;using System.Runtime.InteropServices; class UltraNavScrollHelper:Component{    private Control _hScrollBar;    private Control _vScrollBar;    private Control _controlSite;    private NativeScrollBar _nsb;    private NativeWndProcListner _npl;    private bool _created;     public UltraNavScrollHelper(IContainer container) {        container.Add(this);    }     public UltraNavScrollHelper(Control control, Control horizontalScrollBar, Control verticalScrollBar)    {        this.Control = control;        this.HorizontalScrollBar = horizontalScrollBar;        this.VerticalScrollBar = verticalScrollBar;    }     protected override void…


Full DataGridView scrollbar code

public class ScrollDataGridView : DataGridView{    private const int WM_HSCROLL = 0x0114,                      WM_VSCROLL = 0x0115;     NativeScrollBar nsb;    protected override void OnHandleCreated(EventArgs e)    {        base.OnHandleCreated(e);        if (this.Site == null)        {            this.nsb = new NativeScrollBar(this);        }    }    protected override void OnHandleDestroyed(EventArgs e)    {        base.OnHandleDestroyed(e);        if (this.nsb != null)        {            this.nsb.DestroyHandle();        }    }    protected override void WndProc(ref Message…


Native Scrollbar Code

public class NativeScrollBar : NativeWindow{    public NativeScrollBar(Control parent)    {         CreateParams cp = new CreateParams();         // Fill in the CreateParams details.        cp.Caption = String.Empty;        cp.ClassName = “SCROLLBAR”;         // Set the position of the scrollbar so that it is offscreen        cp.X = -1000;        cp.Y = -1000;        cp.Height = 100;        cp.Width = 100;         //…