What does invalidate method do?

后端 未结 6 2327
攒了一身酷
攒了一身酷 2021-02-13 13:16

What does invalidate method do in winform app?

Invalidate() method comes with six overloaded for

6条回答
  •  迷失自我
    2021-02-13 13:28

    The Invalidate() method will redraw the control. For example if you use a panel 'panel1', which contains a label and a text box, the following code will redraw both the label and text box (by calling the Paint event)

    panel1.Invalidate();
    

提交回复
热议问题