Centered and scrolled PictureBox in WinForms

前端 未结 3 1555
孤街浪徒
孤街浪徒 2021-01-13 20:16

I\'m developing a WinForms application and can\'t figure out how to resolve an issue. I need to show an image in a Form. Because the image can be arbitrarily large, I need s

3条回答
  •  醉话见心
    2021-01-13 20:47

    The picturebox has to be set to autosize. anchored at the center (or a border).

    You could manage all of this in the designer, don't undertand your problem with that.

    The panel has to be set to autoscroll to true.

提交回复
热议问题