How to get expand the height of ListView control so that no scrollbars will show?

  • Thread starter Thread starter deerchao
  • Start date Start date
D

deerchao

I set ListView.Dock to Top, but how can I get the desired height to
avoid it to show vertical scrollbar?

I mean is there something like ListView.ClientSize or
ListView.VirtualHeight?

Thanks!
 
I don't think there is a method to tell you this outright. Instead, I
think you would have to adjust the height of the ListView until the
scrollbar is not displayed anymore (and you will probably need to make some
calls to the GetScrollInfo or GetScrollBarInfo API functions to find this
out).
 
Back
Top