How can I get scrollbars on Picturebox

前端 未结 5 1644
星月不相逢
星月不相逢 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:36

    Another suggestion is to put the picturebox inside a FlowlayoutPanel .

    Set the Auto scroll of the FlowlayoutPanel to true and set the picture size mode to normal

    Using a FlowlayoutPanel makes sure the image is always at 0,0 in the panel

提交回复
热议问题