Only horizontal scrolling in a panel

前端 未结 4 624
情歌与酒
情歌与酒 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:29

    you can try

    panel.AutoScroll = true;
    panel.HorizontalScroll.Enabled=false;
    panel.HorizontalScroll.Visible = false;
    

提交回复
热议问题