Is there a way to check if the Vertical Scroll Bar is visible on a certain ListView object?
I got a Windows Forms with a listView on it, on the resize event i would like to catch if the listview has its Vertical Scroll Bar visible!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If this is WPF a sample exist here which at the base of the solution hooks on to
ListView.LayoutUpdated.If this is WinForms you could make use of pinvoke and GetWindowLong…
VB code exists using
GetWindowLongto check if a ScrollBar exist which you could port to C#.