How do I repaint a form after it was restored from a minimized state?

牧云@^-^@ 提交于 2019-12-11 07:58:47

问题


I have a form in which i paint a waveform on a button click that is as soon as i click button, the waveform displays. Now when i minimize the form and maximize it again, the waveform disappears.How to repaint it? I have seen people using paint event but i dont know how to use it after/inside the button click event. Please help.


回答1:


If you call Control.Invalidate(), the Paint event will occur.



来源:https://stackoverflow.com/questions/2665900/how-do-i-repaint-a-form-after-it-was-restored-from-a-minimized-state

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!