Drawing Graphics Disappear in VB.net

后端 未结 4 1411
后悔当初
后悔当初 2021-01-21 03:39

I have a simple program that you can draw on the screen with FillEllipse and FillRectangle. My problem is that when you drag another window over even a small portion of the scre

4条回答
  •  梦毁少年i
    2021-01-21 04:28

    You need to do all of your drawing in the Paint event, which fires each time your control gets repainted.

提交回复
热议问题