How can I get scrollbars on Picturebox

前端 未结 5 1632
星月不相逢
星月不相逢 2020-11-27 05:32

I have PictureBox picture.

I use:

picture.Size = bmp.Size;
picture.Image = bmp;

Let\'s say there are two integers

5条回答
  •  [愿得一人]
    2020-11-27 05:42

    You can easily do it with a Panel Control

    Insert a panel to your form, say panel1 and set

    panel1.AutoScroll = true;

    insert a PictureBox to the Panel, say picture and set

    picture.SizeMode = PictureBoxSizeMode.AutoSize;
    

    and set the Image

    picture.Image = bmp;
    

    hope this helps

提交回复
热议问题