c#: How do I determine if the ScrollBar for a Scrollable control is currently displayed? -


Is there a way to check that the scrollbar is currently displayed or not for control? I want to use it so that how can I determine the size of children in the control of scrollable, which depends to a certain degree whether the scrollbar is displayed or not (scrollable control can be dynamically resized) .

Try the horizontal scroll and verticalscroll visual properties for control with the autosave property:

  // Checks horizontal scrollbar visibility. YourScrollableControl.HorizontalScroll.Visible; // horizontal scrollbar visibility checks yourScrollableControl.VerticalScroll.Visible;  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -