How do I set my panel so it will only scroll horizontal? I have tried:
this.VerticalScroll.Enabled = false;
But it doesn\'t work.
It works using this code in my panel:
protected override void WndProc(ref System.Windows.Forms.Message m)
{
ShowScrollBar(this.Handle, 1, false);
base.WndProc(ref m);
}
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool ShowScrollBar(IntPtr hWnd, int wBar, bool bShow);