.NET Compact framework - make scrollbars wider

前端 未结 4 1099
甜味超标
甜味超标 2021-01-13 18:51

Is there some way, how to make scrollbar wider in winforms for .net compact framework? I want to be application finger-friendly, but the scrollbars are very narrow for peopl

4条回答
  •  暖寄归人
    2021-01-13 19:32

    VB version:

    'Increase size of the Vertical scrollbar of your DataGrid'
    For Each vBar As VScrollBar In yourDG.Controls.OfType(Of VScrollBar)()
        vBar.Width = 25
    Next
    
    'Increase size of the Horizontal scrollbar of your DataGrid'
    For Each hBar As HScrollBar In yourDG.Controls.OfType(Of HScrollBar)()
        hBar.Height = 25
    Next
    

    All the thx goes to Yahoo Serious.

提交回复
热议问题