C# Windows form Control to Image?

后端 未结 7 1266
遇见更好的自我
遇见更好的自我 2020-12-18 08:29

I am trying to create an image of a Panel and save it to a folder. The problem is the panel has scrollbars and the image generated is only for the visible portion of the Pan

7条回答
  •  伪装坚强ぢ
    2020-12-18 09:27

    Perhaps you could clone the control to another (hidden) form at the desired size (such that the scroll bars aren't displayed) and call your DrawToImage() function that way?

提交回复
热议问题