Thanks
ctrl.Capture = true;
IntPtr hWnd = GetCapture();
ctrl.Capture = false;
bool isVisible = GetWindowLong(hWnd, GWL_STYLE) & WS_VSCROLL) != 0;
...
[DllImport("coredll")]
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);
private const int WS_VSCROLL = 0x200000;
private const int GWL_STYLE = (-16);
--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com