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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top