Enable scroll bars in windows forms

后端 未结 4 1319
执笔经年
执笔经年 2021-01-04 02:41

I\'m developing a windows forms application. In my application I have anchored controls to forms such that forms can be maximized and controls will get arranged accordingly.

4条回答
  •  长情又很酷
    2021-01-04 02:59

    Create a Panel called panel, then do the following:

    panel1.autoscroll  = true;
    panel1.BorderStyle = BorderStyle.FixedSingle;
    

    Use this method to set scroll width and height:

    panel1.SetAutoScrollMargin(int x,int y);
    

提交回复
热议问题