SetWindowLong(ListBox1.Handle, GWL_STYLE, GetWindowLong(ListBox1.Handle, GWL_STYLE) and not (WS_HSCROLL or WS_VSCROLL));