Only horizontal scrolling in a panel

前端 未结 4 626
情歌与酒
情歌与酒 2021-01-21 03:42

How do I set my panel so it will only scroll horizontal? I have tried:

this.VerticalScroll.Enabled = false;

But it doesn\'t work.

4条回答
  •  孤城傲影
    2021-01-21 04:27

    If your panel does not perform AutoScroll, you can use its VScroll property:

    yourPanel.VScroll = false;
    

提交回复
热议问题