How to get a screen capture of a .Net WinForms control programmatically?

前端 未结 7 2049
抹茶落季
抹茶落季 2020-12-13 09:30

How do you programmatically obtain a picture of a .Net control?

7条回答
  •  萌比男神i
    2020-12-13 10:01

    if it's not on the control you're trying to do, you can usually cast it to the base Control class and call the DrawToBitmap method there.

提交回复
热议问题