ListView and Scrollbars

  • Thread starter Thread starter Gawelek
  • Start date Start date
G

Gawelek

Is it possible to get to know if certain scrollbar is hidden or not?
Of course without using WinApi :)
 
Haven't test this but I wonder if you can use the ClientSize property of a
control and compare it to the control normal size for example:



if(myControl.ClientSize.Width == myControl.Width)

MessageBox.Show("No Vertical Scrollbars showing");

Not sure if the ClientSize with no scrollbars will be equal to the regular
width, you may have to account for border styles etc.]



Try it, hope it works.
 
Back
Top