I have a RadListView, with a ViewType of Listview, and VerticalScrollBar set to AutoHide. I simply want to get the width of the control including the scrollbar if visible.
I have tried ClientRectangle.Width - it did not take into account the scrollbar.width
So I tried checking the visibility of the scrollbar, if visible then subtract the scrollbar width. Even when the scrollbar is visible, it always comes back as Visible=False.
Is this a bug or am I doing wrong something wrong?
I have tried ClientRectangle.Width - it did not take into account the scrollbar.width
So I tried checking the visibility of the scrollbar, if visible then subtract the scrollbar width. Even when the scrollbar is visible, it always comes back as Visible=False.
Is this a bug or am I doing wrong something wrong?
Dim iScroll As Integer = 0'get scrollbar width if neededIf Me.lvwLoadForms.VerticalScroll.Visible = True Then iScroll = SystemInformation.VerticalScrollBarWidth'resize items and group widthsWith Me.RadListView1 .GroupItemSize = New Size(.Width - iScroll, .GroupItemSize.Height) .ItemSize = New Size(.Width - .GroupIndent - iScroll, .ItemSize.Height)End With